comparison Discovery/Src/base.c @ 371:fca370f847f8 MotionDetection

Added parameter for number of sectors to be defined
author ideenmodellierer
date Mon, 19 Aug 2019 17:39:47 +0200
parents 50ea68c7a153
children 7b981f8bdd41
comparison
equal deleted inserted replaced
370:77cdfbdaca8c 371:fca370f847f8
902 if ((status.page == PageDive) && (status.line == 0)) 902 if ((status.page == PageDive) && (status.line == 0))
903 { 903 {
904 tHome_change_customview_button_pressed(action); 904 tHome_change_customview_button_pressed(action);
905 if((settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR) && (action == ACTION_BUTTON_ENTER)) /* Button pressed while sector detection is active => calibrate to current pitch value */ 905 if((settingsGetPointer()->MotionDetection == MOTION_DETECT_SECTOR) && (action == ACTION_BUTTON_ENTER)) /* Button pressed while sector detection is active => calibrate to current pitch value */
906 { 906 {
907 DefinePitchSectors(stateRealGetPointer()->lifeData.compass_pitch); 907 DefinePitchSectors(stateRealGetPointer()->lifeData.compass_pitch,CUSTOMER_DEFINED_VIEWS);
908 } 908 }
909 } 909 }
910 else if (status.page == PageSurface) 910 else if (status.page == PageSurface)
911 tHome_change_customview_button_pressed(action); 911 tHome_change_customview_button_pressed(action);
912 else 912 else