minor adjustments

This commit is contained in:
dekunukem
2022-03-03 11:52:05 +00:00
parent 702ceb6089
commit 0eaf3c3f04
2 changed files with 2 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ def check_rpi_model():
save_rpi_model(current_model)
time.sleep(2)
os.system('sudo reboot')
time.sleep(10)
check_rpi_model()

View File

@@ -833,7 +833,7 @@ def raw_input_event_worker():
for stick_axes_name in get_stick_axes(this_device):
axes_code = usb4vc_shared.code_name_to_value_lookup.get(stick_axes_name)[0]
this_gp_dict = gamepad_status_dict[this_device['id']]
if axes_code in this_gp_dict and 127 - 10 <= this_gp_dict[axes_code] <= 127 + 10:
if axes_code in this_gp_dict and 127 - 12 <= this_gp_dict[axes_code] <= 127 + 12:
this_gp_dict[axes_code] = 127
gamepad_output = make_gamepad_spi_packet(gamepad_status_dict, this_id, this_device)
if gamepad_output != last_gamepad_msg: