Debug Timers: add 10ms period measurement, delete unused timer debugT… (#5319)
* Debug Timers: add 10ms period measurement, delete unused timer debugTimerPerMainPeriod * Typo in drawSplash() if MENUS_LOCK == 1
This commit is contained in:
committed by
Andre Bernet
parent
ff8f4a3a92
commit
6c7e4b5597
+1
-1
@@ -235,12 +235,12 @@ const char * const debugTimerNames[DEBUG_TIMERS_COUNT] = {
|
||||
"Pulses int." // debugTimerIntPulses,
|
||||
,"Pulses dur." // debugTimerIntPulsesDuration,
|
||||
,"10ms dur. " // debugTimerPer10ms,
|
||||
,"10ms period" // debugTimerPer10msPeriod,
|
||||
,"Rotary enc." // debugTimerRotEnc,
|
||||
,"Haptic " // debugTimerHaptic,
|
||||
,"Mixer calc " // debugTimerMixer,
|
||||
,"Tel. wakeup" // debugTimerTelemetryWakeup,
|
||||
,"perMain dur" // debugTimerPerMain,
|
||||
," period " // debugTimerPerMainPeriod,
|
||||
," perMain s1" // debugTimerPerMain1,
|
||||
," guiMain " // debugTimerGuiMain,
|
||||
," LUA bg " // debugTimerLuaBg,
|
||||
|
||||
+1
-1
@@ -369,12 +369,12 @@ enum DebugTimers {
|
||||
debugTimerIntPulses,
|
||||
debugTimerIntPulsesDuration,
|
||||
debugTimerPer10ms,
|
||||
debugTimerPer10msPeriod,
|
||||
debugTimerRotEnc,
|
||||
debugTimerHaptic,
|
||||
debugTimerMixer,
|
||||
debugTimerTelemetryWakeup,
|
||||
debugTimerPerMain,
|
||||
debugTimerPerMainPeriod,
|
||||
debugTimerPerMain1,
|
||||
debugTimerGuiMain,
|
||||
debugTimerLuaBg,
|
||||
|
||||
@@ -29,7 +29,7 @@ void drawSplash()
|
||||
|
||||
#if MENUS_LOCK == 1
|
||||
if (readonly == false) {
|
||||
lcdDrawSolidFilledRect((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 - 9, 50, (sizeof(TR_UNLOCKED)-1)*FW+16, 11, SOLID, ROUND);
|
||||
lcdDrawSolidFilledRect((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 - 9, 50, (sizeof(TR_UNLOCKED)-1)*FW+16, 11, SOLID|ROUND);
|
||||
lcdDrawText((LCD_W-(sizeof(TR_UNLOCKED)-1)*FW)/2 , 53, STR_UNLOCKED);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -80,6 +80,7 @@ void interrupt1ms()
|
||||
if (pre_scale == 10) {
|
||||
pre_scale = 0;
|
||||
DEBUG_TIMER_START(debugTimerPer10ms);
|
||||
DEBUG_TIMER_SAMPLE(debugTimerPer10msPeriod);
|
||||
per10ms();
|
||||
DEBUG_TIMER_STOP(debugTimerPer10ms);
|
||||
}
|
||||
|
||||
@@ -82,6 +82,7 @@ void interrupt5ms()
|
||||
if (++pre_scale >= 2) {
|
||||
pre_scale = 0 ;
|
||||
DEBUG_TIMER_START(debugTimerPer10ms);
|
||||
DEBUG_TIMER_SAMPLE(debugTimerPer10msPeriod);
|
||||
per10ms();
|
||||
DEBUG_TIMER_STOP(debugTimerPer10ms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user