Soft Power Switch on both v4.1 and ersky9x boards
Delay before effective EEPROM write on these boards Current displayed
This commit is contained in:
@@ -77,6 +77,9 @@ void menuProcStatistic(uint8_t event)
|
||||
}
|
||||
}
|
||||
|
||||
uint16_t Current ;
|
||||
uint32_t Current_sum ;
|
||||
uint8_t Current_count ;
|
||||
void menuProcDebug(uint8_t event)
|
||||
{
|
||||
TITLE(STR_MENUDEBUG);
|
||||
@@ -96,14 +99,34 @@ void menuProcDebug(uint8_t event)
|
||||
chainMenu(menuMainView);
|
||||
break;
|
||||
}
|
||||
lcd_puts( 0*FW, 1*FH, STR_TMR1LATMAXUS);
|
||||
lcd_putsLeft(1*FH, STR_TMR1LATMAXUS);
|
||||
lcd_outdez8(15*FW , 1*FH, g_tmr1Latency_max/2 );
|
||||
lcd_puts( 0*FW, 2*FH, STR_TMR1LATMINUS);
|
||||
lcd_putsLeft(2*FH, STR_TMR1LATMINUS);
|
||||
lcd_outdez8(15*FW , 2*FH, g_tmr1Latency_min/2 );
|
||||
lcd_puts( 0*FW, 3*FH, STR_TMR1JITTERUS);
|
||||
lcd_putsLeft(3*FH, STR_TMR1JITTERUS);
|
||||
lcd_outdez8(15*FW , 3*FH, (g_tmr1Latency_max - g_tmr1Latency_min) /2 );
|
||||
lcd_puts( 0*FW, 4*FH, STR_TMAINMAXMS);
|
||||
lcd_putsLeft(4*FH, STR_TMAINMAXMS);
|
||||
#if defined(PCBARM)
|
||||
lcd_outdezAtt(15*FW, 4*FH, (g_timeMain)/20, PREC2);
|
||||
#else
|
||||
lcd_outdezAtt(15*FW, 4*FH, (g_timeMain*100)/16, PREC2);
|
||||
#endif
|
||||
|
||||
#if defined(PCBARM) && defined(REVB)
|
||||
// TODO then there are 2 means, is it needed?
|
||||
Current_sum += anaIn(NUMBER_ANALOG-1) ;
|
||||
if ( ++Current_count > 49 )
|
||||
{
|
||||
Current = Current_sum / 5 ;
|
||||
Current_sum = 0 ;
|
||||
Current_count = 0 ;
|
||||
}
|
||||
lcd_putsLeft(6*FH, STR_CURRENT);
|
||||
lcd_outhex4(10*FW+3, 6*FH, Current ) ;
|
||||
lcd_outdezAtt(18*FW, 6*FH, Current/22, 0 ) ;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
lcd_puts( 0*FW, 5*FH, STR_T10MSUS);
|
||||
lcd_outdez8(15*FW , 5*FH, g_time_per10/2 );
|
||||
|
||||
Reference in New Issue
Block a user