@@ -519,20 +519,20 @@ bool ATTClass::handleNotify(uint16_t handle, const uint8_t* value, int length)
519519 continue ;
520520 }
521521
522- uint8_t notication [_peers[i].mtu ];
523- uint16_t noticationLength = 0 ;
522+ uint8_t notification [_peers[i].mtu ];
523+ uint16_t notificationLength = 0 ;
524524
525- notication [0 ] = ATT_OP_HANDLE_NOTIFY;
526- noticationLength ++;
525+ notification [0 ] = ATT_OP_HANDLE_NOTIFY;
526+ notificationLength ++;
527527
528- memcpy (¬ication [1 ], &handle, sizeof (handle));
529- noticationLength += sizeof (handle);
528+ memcpy (¬ification [1 ], &handle, sizeof (handle));
529+ notificationLength += sizeof (handle);
530530
531- length = min ((uint16_t )(_peers[i].mtu - noticationLength ), (uint16_t )length);
532- memcpy (¬ication[noticationLength ], value, length);
533- noticationLength += length;
531+ length = min ((uint16_t )(_peers[i].mtu - notificationLength ), (uint16_t )length);
532+ memcpy (¬ification[notificationLength ], value, length);
533+ notificationLength += length;
534534
535- HCI.sendAclPkt (_peers[i].connectionHandle , ATT_CID, noticationLength, notication );
535+ HCI.sendAclPkt (_peers[i].connectionHandle , ATT_CID, notificationLength, notification );
536536
537537 numNotifications++;
538538 }
0 commit comments