I am unable to multiply ...
This commit is contained in:
parent
8723cb8913
commit
2c5596dba6
|
@ -214,7 +214,7 @@ void buzzer_off(void) {
|
||||||
|
|
||||||
void wait_ms(uint16_t ms) {
|
void wait_ms(uint16_t ms) {
|
||||||
// TODO: this function seems to be ~10% too fast
|
// 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
|
// wait_time is int16_t for performance reasons, so we have to wait multiple times
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
#include <pentabug/hal.h>
|
#include <pentabug/hal.h>
|
||||||
|
|
||||||
#define HALF_BIT_TICKS 34
|
#define HALF_BIT_TICKS 68
|
||||||
|
|
||||||
static uint8_t toggle = 0;
|
static uint8_t toggle = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user