diff options
| author | Selene ToyKeeper | 2017-08-19 15:33:33 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-08-19 15:33:33 -0600 |
| commit | ef05435261fac31790303dbff16bcc194e9e5cb5 (patch) | |
| tree | 628e02df8e30e1b4068c076ad14df2b4b3bded02 /tk-delay.h | |
| parent | Added unfinished UI similar to Olight Baton series. (diff) | |
| download | anduril-ef05435261fac31790303dbff16bcc194e9e5cb5.tar.gz anduril-ef05435261fac31790303dbff16bcc194e9e5cb5.tar.bz2 anduril-ef05435261fac31790303dbff16bcc194e9e5cb5.zip | |
Fixed unreliability of short-click detection.
(it was doing stuff like "press, release, release, timeout" so it didn't match "press, release, timeout")
(it may have also been missing the exact tick it needed, so I made it use >= instead of ==, but this is theoretical and harmless if I was wrong)
Made baton mode memory work a bit better for both regular and strobe modes.
Made baton fast strobe pulses shorter for better motion freezing.
Added USE_DELAY_ZERO option as an alternate for USE_FINE_DELAY.
Diffstat (limited to 'tk-delay.h')
| -rw-r--r-- | tk-delay.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -40,7 +40,7 @@ void _delay_ms(uint16_t n) //#endif } #endif -#ifdef USE_FINE_DELAY +#if defined(USE_FINE_DELAY) || defined(USE_DELAY_ZERO) #define delay_zero _delay_zero void _delay_zero() { _delay_loop_2(BOGOMIPS/3); |
