ir_nec: fix a minor clock setup typo in nec_receive.pio (#207)
This commit is contained in:
parent
f9d11a2d74
commit
cba82df30b
@ -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
|
// 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);
|
sm_config_set_clkdiv (&c, div);
|
||||||
|
|
||||||
// Apply the configuration to the state machine
|
// Apply the configuration to the state machine
|
||||||
|
|||||||
Reference in New Issue
Block a user