ST-DEVKIT-LRWAN
Dependents: DISCO-L072CZ-LRWAN1-base
Fork of SX1276GenericLib by
Diff: Arduino-mbed-APIs/arduino-util.cpp
- Revision:
- 81:d288917af0ce
- Parent:
- 79:8ae448a3c1fd
--- a/Arduino-mbed-APIs/arduino-util.cpp Thu Aug 03 13:43:35 2017 +0200 +++ b/Arduino-mbed-APIs/arduino-util.cpp Sat Aug 05 16:08:26 2017 +0200 @@ -23,9 +23,7 @@ int s = secs % 60; int m = secs / 60; int h = secs / 3600; - int us = us_getTicker(); - while(us > 999999) - us /= 10; // get it to 6 digits only + int us = us_getTicker() % 1000000; snprintf(tmpbuf, sizeof(tmpbuf)-1, "%02d:%02d:%02d.%.06d ", h, m, s, us); ser->write(tmpbuf, (int) sizeof "00:00:34.3436868 " -1);