diff options
Diffstat (limited to 'src/arch/arduino-nano/arch.cc')
-rw-r--r-- | src/arch/arduino-nano/arch.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/arduino-nano/arch.cc b/src/arch/arduino-nano/arch.cc index 221ef5b..1023927 100644 --- a/src/arch/arduino-nano/arch.cc +++ b/src/arch/arduino-nano/arch.cc @@ -105,12 +105,16 @@ void Arch::idle(void) void Arch::delay_us(unsigned int const us) { - _delay_us(us); + for (unsigned int i = 0; i < us; i++) { + _delay_us(1); + } } void Arch::delay_ms(unsigned int const ms) { - _delay_ms(ms); + for (unsigned int i = 0; i < ms; i++) { + _delay_ms(1); + } } Arch arch; |