|
40 | 40 |
|
41 | 41 | #define DEBUG_ANCS 0 |
42 | 42 |
|
43 | | -void bleancs_notification_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len); |
44 | | -void bleancs_data_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len); |
| 43 | +void bleancs_notification_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len); |
| 44 | +void bleancs_data_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len); |
45 | 45 |
|
46 | 46 | /* ANCS Service : 7905F431-B5CE-4E99-A40F-4B1E122D00D0 |
47 | 47 | * Control Point : 69D1D8F3-45E1-49A8-9821-9BBDFDAAD9D9 |
@@ -383,14 +383,14 @@ bool BLEAncs::actNegative(uint32_t uid) |
383 | 383 | /*------------------------------------------------------------------*/ |
384 | 384 | /* Callback |
385 | 385 | *------------------------------------------------------------------*/ |
386 | | -void bleancs_notification_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len) |
| 386 | +void bleancs_notification_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len) |
387 | 387 | { |
388 | | - BLEAncs& svc = (BLEAncs&) chr.parentService(); |
| 388 | + BLEAncs& svc = (BLEAncs&) chr->parentService(); |
389 | 389 | svc._handleNotification(data, len); |
390 | 390 | } |
391 | 391 |
|
392 | | -void bleancs_data_cb(BLEClientCharacteristic& chr, uint8_t* data, uint16_t len) |
| 392 | +void bleancs_data_cb(BLEClientCharacteristic* chr, uint8_t* data, uint16_t len) |
393 | 393 | { |
394 | | - BLEAncs& svc = (BLEAncs&) chr.parentService(); |
| 394 | + BLEAncs& svc = (BLEAncs&) chr->parentService(); |
395 | 395 | svc._handleData(data, len); |
396 | 396 | } |
0 commit comments