sen data via radio to other microbits accept command via radio bufixes
Dependencies: BLE_API nRF51822 mbed-dev-bin
Diff: source/types/MicroBitEvent.cpp
- Revision:
- 31:87789e55bac7
- Parent:
- 1:8aa5cdb4ab67
- Child:
- 32:ece16b5987dd
diff -r db87179335d5 -r 87789e55bac7 source/types/MicroBitEvent.cpp --- a/source/types/MicroBitEvent.cpp Wed Jul 13 12:18:08 2016 +0100 +++ b/source/types/MicroBitEvent.cpp Wed Jul 13 12:18:10 2016 +0100 @@ -58,7 +58,7 @@ { this->source = source; this->value = value; - this->timestamp = system_timer_current_time(); + this->timestamp = system_timer_current_time_us(); if(mode != CREATE_ONLY) this->fire(); @@ -71,7 +71,7 @@ { this->source = 0; this->value = 0; - this->timestamp = system_timer_current_time(); + this->timestamp = system_timer_current_time_us(); } /** @@ -94,4 +94,4 @@ { this->evt = evt; this->next = NULL; -} +} \ No newline at end of file