Compilation fix for newer mbed-os
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/platform/btle.cpp
- Branch:
- e9fb3e390284c3f7ef8e1d21cc55deef7558ca3d
- Revision:
- 264:1e754a01869e
- Parent:
- 253:9665a6f8bbdb
- Child:
- 273:00205952d841
--- a/source/platform/btle.cpp Thu Sep 15 10:51:17 2016 +0100 +++ b/source/platform/btle.cpp Thu Sep 15 10:51:26 2016 +0100 @@ -203,9 +203,7 @@ /*ret = aci_gatt_update_char_value(service_handle, dev_name_char_handle, 0, strlen(name), (tHalUint8 *)name);*/ -#ifdef AST_FOR_MBED_OS - minar::Scheduler::postCallback(btle_handler); -#endif + signalEventsToProcess(); return; } @@ -218,15 +216,14 @@ @returns */ /**************************************************************************/ -#ifdef AST_FOR_MBED_OS int btle_handler_pending = 0; void btle_handler(void) { btle_handler_pending = 0; + BlueNRGGap::getInstance().Process(); HCI_Process(); } -#endif /* set BLE Version string */ void setVersionString(uint8_t hwVersion, uint16_t fwVersion) @@ -643,4 +640,4 @@ #ifdef __cplusplus } -#endif +#endif \ No newline at end of file