# HG changeset patch # User ideenmodellierer # Date 1570738192 -7200 # Node ID a7331e4a9ca665bbfd01fec4087378f2c106280a # Parent 0dbf550dc7432d8bd1616030fb4a65e41834c12c Minor code cleanup diff -r 0dbf550dc743 -r a7331e4a9ca6 Discovery/Src/base.c --- a/Discovery/Src/base.c Mon Sep 16 22:49:34 2019 +0200 +++ b/Discovery/Src/base.c Thu Oct 10 22:09:52 2019 +0200 @@ -502,16 +502,16 @@ pitchstate = DETECT_NOTHING; break; } + if(DETECT_NEG_PITCH == pitchstate) + { + StoreButtonAction((uint8_t)ACTION_PITCH_NEG); + } + if(DETECT_POS_PITCH == pitchstate) + { + StoreButtonAction((uint8_t)ACTION_PITCH_POS); + } } - if(DETECT_NEG_PITCH == pitchstate) - { - StoreButtonAction((uint8_t)ACTION_PITCH_NEG); - } - if(DETECT_POS_PITCH == pitchstate) - { - StoreButtonAction((uint8_t)ACTION_PITCH_POS); - } // Enable this to make the simulator write a logbook entry // #define SIM_WRITES_LOGBOOK 1