Added more waiting time between udp sends and changing boolean in input
This commit is contained in:
parent
ea5deeccdf
commit
0d80781129
|
@ -64,7 +64,7 @@ void controller_handle_inputs_outputs(void)
|
||||||
udp_server_send();
|
udp_server_send();
|
||||||
mutex_exit(&wifi_mutex);
|
mutex_exit(&wifi_mutex);
|
||||||
|
|
||||||
sleep_us(500);
|
sleep_ms(10);
|
||||||
|
|
||||||
tight_loop_contents();
|
tight_loop_contents();
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ void get_inputs(void)
|
||||||
{
|
{
|
||||||
const button_def_t *BUTTON_DEF = &BUTTONS_DEFS[actual_button];
|
const button_def_t *BUTTON_DEF = &BUTTONS_DEFS[actual_button];
|
||||||
|
|
||||||
controller.inputs_buffer.buttons_states[actual_button] = gpio_get(BUTTON_DEF->pin);
|
controller.inputs_buffer.buttons_states[actual_button] = !gpio_get(BUTTON_DEF->pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(controller.inputs_buffer.buttons_states[BUTTON_L])
|
if(controller.inputs_buffer.buttons_states[BUTTON_L])
|
||||||
|
|
Loading…
Reference in New Issue