diff --git a/firmware/lib/hal.c b/firmware/lib/hal.c index fc04d6a..af88d5a 100644 --- a/firmware/lib/hal.c +++ b/firmware/lib/hal.c @@ -214,7 +214,7 @@ void buzzer_off(void) { void wait_ms(uint16_t ms) { // TODO: this function seems to be ~10% too fast - int32_t cycles = ms * (int32_t)64; + int32_t cycles = ms * (int32_t) 76; // wait_time is int16_t for performance reasons, so we have to wait multiple times diff --git a/firmware/lib/rc5.c b/firmware/lib/rc5.c index 6bcdcbd..9886f6f 100644 --- a/firmware/lib/rc5.c +++ b/firmware/lib/rc5.c @@ -2,7 +2,7 @@ #include -#define HALF_BIT_TICKS 34 +#define HALF_BIT_TICKS 68 static uint8_t toggle = 0;