From 2c5596dba629ea61812c054f635abc41762f02ad Mon Sep 17 00:00:00 2001 From: Thammi Date: Thu, 5 Sep 2013 12:00:52 +0200 Subject: [PATCH] I am unable to multiply ... --- firmware/lib/hal.c | 2 +- firmware/lib/rc5.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;