example firmware for nRF51-Dongle to use with Opentrigger
Dependencies: BLE_API mbed nRF51822
Fork of BLE_Button by
Diff: main.cpp
- Revision:
- 17:33d38b30e640
- Parent:
- 16:7a9fde930f8a
- Child:
- 18:2b328834f64f
--- a/main.cpp Tue Jun 14 17:30:26 2016 +0000 +++ b/main.cpp Tue Jun 14 18:04:25 2016 +0000 @@ -229,8 +229,9 @@ if(cnt < 1){ ble.gap().startAdvertising(); led3 = !1; - } - if(cnt > 3){ + }else if(cnt == 1){ + updateManufacturerData(); + }else if(cnt > 3){ ble.gap().stopAdvertising(); led3 = !0; }else{