From cba82df30ba62ba4d29c077da2032e9a2cf4383c Mon Sep 17 00:00:00 2001 From: Samuel Jones Date: Mon, 16 May 2022 14:48:42 -0400 Subject: [PATCH] ir_nec: fix a minor clock setup typo in nec_receive.pio (#207) --- pio/ir_nec/nec_receive_library/nec_receive.pio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pio/ir_nec/nec_receive_library/nec_receive.pio b/pio/ir_nec/nec_receive_library/nec_receive.pio index 361548a..a2c5f5e 100644 --- a/pio/ir_nec/nec_receive_library/nec_receive.pio +++ b/pio/ir_nec/nec_receive_library/nec_receive.pio @@ -82,7 +82,7 @@ static inline void nec_receive_program_init (PIO pio, uint sm, uint offset, uint // Set the clock divider to 10 ticks per 562.5us burst period // - float div = clock_get_hz (clk_sys) / (10.0 / 526.6e-6); + float div = clock_get_hz (clk_sys) / (10.0 / 562.5e-6); sm_config_set_clkdiv (&c, div); // Apply the configuration to the state machine