aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-03-18 23:00:28 -0600
committerSelene ToyKeeper2017-03-18 23:00:28 -0600
commite9165e8ca3d6aaa9e3b3b5795e4a4ca15523226f (patch)
tree3b62076e0b1d364893d4878d87b500d6448246b6
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().
-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
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.