aboutsummaryrefslogtreecommitdiff
path: root/tk-delay.h
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-03-18 23:00:28 -0600
committerSelene ToyKeeper2017-03-18 23:00:28 -0600
commite9165e8ca3d6aaa9e3b3b5795e4a4ca15523226f (patch)
tree3b62076e0b1d364893d4878d87b500d6448246b6 /tk-delay.h
parentFixed LVP. Verified it works on FET+1 and attiny25. Added presets for MTN17... (diff)
downloadanduril-e9165e8ca3d6aaa9e3b3b5795e4a4ca15523226f.tar.gz
anduril-e9165e8ca3d6aaa9e3b3b5795e4a4ca15523226f.tar.bz2
anduril-e9165e8ca3d6aaa9e3b3b5795e4a4ca15523226f.zip
Made tk-delay.h allow use of both _delay_ms() and _delay_4ms().
Diffstat (limited to '')
-rw-r--r--tk-delay.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tk-delay.h b/tk-delay.h
index e62aa4c..78cb188 100644
--- a/tk-delay.h
+++ b/tk-delay.h
@@ -53,11 +53,12 @@ void _delay_4ms(uint8_t n) // because it saves a bit of ROM space to do it this
#ifdef USE_DELAY_S
void _delay_s() // because it saves a bit of ROM space to do it this way
{
- #ifdef USE_DELAY_MS
- _delay_ms(1000);
- #endif
#ifdef USE_DELAY_4MS
_delay_4ms(250);
+ #else
+ #ifdef USE_DELAY_MS
+ _delay_ms(1000);
+ #endif
#endif
}
#endif