Blink, remove compiler errors
Dependents: STM32F031_Blink_Aug17
Fork of mbed-STM32F030F4 by
Diff: common/Timer.cpp
- Revision:
- 8:edb6e2a469d0
- Parent:
- 0:38ccae254a29
--- a/common/Timer.cpp Wed Nov 19 16:28:35 2014 +0000 +++ b/common/Timer.cpp Mon Aug 10 23:44:25 2015 +0000 @@ -23,8 +23,10 @@ } void Timer::start() { - _start = us_ticker_read(); - _running = 1; + if (!_running) { + _start = us_ticker_read(); + _running = 1; + } } void Timer::stop() {