@@ -519,20 +519,20 @@ bool ATTClass::handleNotify(uint16_t handle, const uint8_t* value, int length)
519
519
continue ;
520
520
}
521
521
522
- uint8_t notication [_peers[i].mtu ];
523
- uint16_t noticationLength = 0 ;
522
+ uint8_t notification [_peers[i].mtu ];
523
+ uint16_t notificationLength = 0 ;
524
524
525
- notication [0 ] = ATT_OP_HANDLE_NOTIFY;
526
- noticationLength ++;
525
+ notification [0 ] = ATT_OP_HANDLE_NOTIFY;
526
+ notificationLength ++;
527
527
528
- memcpy (¬ication [1 ], &handle, sizeof (handle));
529
- noticationLength += sizeof (handle);
528
+ memcpy (¬ification [1 ], &handle, sizeof (handle));
529
+ notificationLength += sizeof (handle);
530
530
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;
534
534
535
- HCI.sendAclPkt (_peers[i].connectionHandle , ATT_CID, noticationLength, notication );
535
+ HCI.sendAclPkt (_peers[i].connectionHandle , ATT_CID, notificationLength, notification );
536
536
537
537
numNotifications++;
538
538
}
0 commit comments