diff options
| author | hathach <[email protected]> | 2019-05-21 13:31:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-21 13:31:02 +0700 |
| commit | ce6976f40055db185b7260c7619d02cf6ffd4cf6 (patch) | |
| tree | 569d8c123efa4b00f27a31993d11f54101bbb319 /examples/host | |
| parent | 73c7db38f7517bbd5c6710874962774bdc2df65d (diff) | |
better fix for #72 millis overthrow
Diffstat (limited to 'examples/host')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c index a5e95159b..61f101127 100644 --- a/examples/host/cdc_msc_hid/src/main.c +++ b/examples/host/cdc_msc_hid/src/main.c @@ -170,7 +170,7 @@ void led_blinking_task(void) static bool led_state = false; // Blink every 1000 ms - if ( board_millis() < start_ms + interval_ms) return; // not enough time + if ( board_millis() - start_ms < interval_ms) return; // not enough time start_ms += interval_ms; board_led_write(led_state); |
