comparison Discovery/Src/base.c @ 380:a7331e4a9ca6 MotionDetection

Minor code cleanup
author ideenmodellierer
date Thu, 10 Oct 2019 22:09:52 +0200
parents 939bc4da6812
children 14fd5f35cb50
comparison
equal deleted inserted replaced
379:0dbf550dc743 380:a7331e4a9ca6
500 break; 500 break;
501 default: 501 default:
502 pitchstate = DETECT_NOTHING; 502 pitchstate = DETECT_NOTHING;
503 break; 503 break;
504 } 504 }
505 if(DETECT_NEG_PITCH == pitchstate)
506 {
507 StoreButtonAction((uint8_t)ACTION_PITCH_NEG);
508 }
509 if(DETECT_POS_PITCH == pitchstate)
510 {
511 StoreButtonAction((uint8_t)ACTION_PITCH_POS);
512 }
505 } 513 }
506 514
507 if(DETECT_NEG_PITCH == pitchstate)
508 {
509 StoreButtonAction((uint8_t)ACTION_PITCH_NEG);
510 }
511 if(DETECT_POS_PITCH == pitchstate)
512 {
513 StoreButtonAction((uint8_t)ACTION_PITCH_POS);
514 }
515 515
516 // Enable this to make the simulator write a logbook entry 516 // Enable this to make the simulator write a logbook entry
517 // #define SIM_WRITES_LOGBOOK 1 517 // #define SIM_WRITES_LOGBOOK 1
518 518
519 #ifdef SIM_WRITES_LOGBOOK 519 #ifdef SIM_WRITES_LOGBOOK