# HG changeset patch # User Ideenmodellierer # Date 1606331902 -3600 # Node ID f3463c06b2d3d11b7a3688a0c3b3130f1fa55181 # Parent 91a8f9893e68ac508ff538b3c01d13743d94066f Added debug view to viewport calibration: By enabling the debuginfo switch the calibration menu now displays a numeric value showing the deviation between current and calibrated view port. diff -r 91a8f9893e68 -r f3463c06b2d3 Discovery/Src/tMenuEditCustom.c --- a/Discovery/Src/tMenuEditCustom.c Wed Nov 25 20:16:20 2020 +0100 +++ b/Discovery/Src/tMenuEditCustom.c Wed Nov 25 20:18:22 2020 +0100 @@ -228,6 +228,11 @@ { distance = checkViewport(stateUsed->lifeData.compass_roll, stateUsed->lifeData.compass_pitch, stateUsed->lifeData.compass_heading); + if(pSettings->showDebugInfo) + { + snprintf(text,32,"\001%03.3f",distance); + write_label_var( 30, 700, ME_Y_LINE2, &FontT48, text); + } if(distance < 0.5) { set_Backlight_Boost(settingsGetPointer()->viewPortMode & 0x03);