Increase delay when polling navswitch
This commit is contained in:
+4
-2
@@ -127,8 +127,10 @@ navswitch_update (void)
|
|||||||
/* I'm unsure why this is needed. It wasn't required for the
|
/* I'm unsure why this is needed. It wasn't required for the
|
||||||
slightly slower PIO implementation. There may be a minimum
|
slightly slower PIO implementation. There may be a minimum
|
||||||
number of CPU clock cycles for the synchronising flip flops
|
number of CPU clock cycles for the synchronising flip flops
|
||||||
to propagate the input state? */
|
to propagate the input state? For some reason the boards
|
||||||
DELAY_US (1.0);
|
made in 2013 need a longer delay. Increasing the charge
|
||||||
|
time before switching to an input does not help.*/
|
||||||
|
DELAY_US (2.0);
|
||||||
|
|
||||||
navswitch_state[i].current = pio_input_get (navswitch_cfg[i].pio) == 0;
|
navswitch_state[i].current = pio_input_get (navswitch_cfg[i].pio) == 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user