ir_nec: fix a minor clock setup typo in nec_receive.pio (#207)

This commit is contained in:
Samuel Jones
2022-05-16 14:48:42 -04:00
committed by GitHub
parent f9d11a2d74
commit cba82df30b

View File

@@ -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