diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-13 13:06:18 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-13 13:37:21 -0400 |
commit | 4a3d04654580b1771fcda3492491843d5eac10ad (patch) | |
tree | c93aef6dda1960d357e0da146164b0f459c389b3 /firmware/target/arm/tcc780x/cowond2/button-cowond2.c | |
parent | b4865b05b0a3cc45f2873599c6411bef92f40b1c (diff) |
Fix a pile of yellow in the bootloader
Change-Id: Ia89a33bbb13683566e421ac2a002baa20cdb07de
Diffstat (limited to 'firmware/target/arm/tcc780x/cowond2/button-cowond2.c')
-rw-r--r-- | firmware/target/arm/tcc780x/cowond2/button-cowond2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c index df2ea1f307..8968c4f908 100644 --- a/firmware/target/arm/tcc780x/cowond2/button-cowond2.c +++ b/firmware/target/arm/tcc780x/cowond2/button-cowond2.c @@ -50,11 +50,15 @@ int button_read_device(int *data) static int old_data = 0; static bool hold_button = false; +#ifndef BOOTLOADER bool hold_button_old; +#endif *data = old_data; +#ifndef BOOTLOADER hold_button_old = hold_button; +#endif hold_button = button_hold(); #ifndef BOOTLOADER |