From fa022fe190c90b333147ed8580c7665a2db874a3 Mon Sep 17 00:00:00 2001 From: phamthit <phamthit@bullseye> Date: Wed, 31 May 2023 17:31:44 +0200 Subject: [PATCH] Fix blue button realesing --- main/knobs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/knobs.c b/main/knobs.c index 74620a2..a29fd63 100644 --- a/main/knobs.c +++ b/main/knobs.c @@ -160,7 +160,6 @@ void handle_shoot_button(uint32_t knob_states, int* button_b_pressed, player_t* (*num_projectiles)++; float used_ammo = (float)(player->max_ammo - player->ammo) / 100 * 32; - printf("ammo %u\n", player->ammo); set_ammo_count(spiled_base, (int)used_ammo); *button_b_pressed = 1; @@ -177,7 +176,7 @@ void handle_button_released(uint32_t knob_states, int* button_r_pressed, int* bu *button_g_pressed = 0; } - if ((knob_states & (1 << 19)) == 0) { + if ((knob_states & (1 << 18)) == 0) { *button_b_pressed = 0; } } \ No newline at end of file -- GitLab