Fix an issue in statistics display
This commit is contained in:
@@ -62,7 +62,6 @@
|
|||||||
#define ZCHAR 0x80
|
#define ZCHAR 0x80
|
||||||
|
|
||||||
/* lcd outdez flags */
|
/* lcd outdez flags */
|
||||||
#define UNSIGN 0x08
|
|
||||||
#define LEADING0 0x10
|
#define LEADING0 0x10
|
||||||
#define PREC1 0x20
|
#define PREC1 0x20
|
||||||
#define PREC2 0x30
|
#define PREC2 0x30
|
||||||
|
|||||||
@@ -229,11 +229,11 @@ void menuStatisticsDebug(event_t event)
|
|||||||
lcdDrawText(lcdLastRightPos, MENU_DEBUG_Y_MIXMAX, "ms");
|
lcdDrawText(lcdLastRightPos, MENU_DEBUG_Y_MIXMAX, "ms");
|
||||||
|
|
||||||
lcdDrawTextAlignedLeft(MENU_DEBUG_Y_RTOS, STR_FREESTACKMINB);
|
lcdDrawTextAlignedLeft(MENU_DEBUG_Y_RTOS, STR_FREESTACKMINB);
|
||||||
lcdDrawNumber(MENU_DEBUG_COL1_OFS, MENU_DEBUG_Y_RTOS, menusStack.available(), UNSIGN|LEFT);
|
lcdDrawNumber(MENU_DEBUG_COL1_OFS, MENU_DEBUG_Y_RTOS, menusStack.available(), LEFT);
|
||||||
lcdDrawText(lcdLastRightPos, MENU_DEBUG_Y_RTOS, "/");
|
lcdDrawText(lcdLastRightPos, MENU_DEBUG_Y_RTOS, "/");
|
||||||
lcdDrawNumber(lcdLastRightPos+1, MENU_DEBUG_Y_RTOS, mixerStack.available(), UNSIGN|LEFT);
|
lcdDrawNumber(lcdLastRightPos+1, MENU_DEBUG_Y_RTOS, mixerStack.available(), LEFT);
|
||||||
lcdDrawText(lcdLastRightPos, MENU_DEBUG_Y_RTOS, "/");
|
lcdDrawText(lcdLastRightPos, MENU_DEBUG_Y_RTOS, "/");
|
||||||
lcdDrawNumber(lcdLastRightPos+1, MENU_DEBUG_Y_RTOS, audioStack.available(), UNSIGN|LEFT);
|
lcdDrawNumber(lcdLastRightPos+1, MENU_DEBUG_Y_RTOS, audioStack.available(), LEFT);
|
||||||
|
|
||||||
lcdDrawText(4*FW, 7*FH+1, STR_MENUTORESET);
|
lcdDrawText(4*FW, 7*FH+1, STR_MENUTORESET);
|
||||||
lcdInvertLastLine();
|
lcdInvertLastLine();
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 328 B |
@@ -99,28 +99,12 @@ bool checkScreenshot(const QString & test)
|
|||||||
#if defined(COLORLCD)
|
#if defined(COLORLCD)
|
||||||
// TODO
|
// TODO
|
||||||
#else
|
#else
|
||||||
#if defined(PCBTARANIS) && LCD_W >= 212
|
|
||||||
TEST(outdezNAtt, test_unsigned)
|
TEST(outdezNAtt, test_unsigned)
|
||||||
{
|
{
|
||||||
lcdClear();
|
lcdClear();
|
||||||
lcdDrawNumber(0, 0, 65530, LEFT);
|
lcdDrawNumber(0, 0, 65530, LEFT);
|
||||||
EXPECT_TRUE(checkScreenshot("unsigned")) << "Unsigned numbers will be bad displayed";
|
EXPECT_TRUE(checkScreenshot("unsigned")) << "Unsigned numbers will be bad displayed";
|
||||||
}
|
}
|
||||||
#elif LCD_W <= 128
|
|
||||||
TEST(outdezNAtt, test_unsigned)
|
|
||||||
{
|
|
||||||
lcdClear();
|
|
||||||
lcdDrawNumber(0, 0, 65530, LEFT|UNSIGN);
|
|
||||||
EXPECT_TRUE(checkScreenshot("arm_unsigned")) << "Unsigned numbers will be bad displayed";
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
TEST(outdezNAtt, test_unsigned)
|
|
||||||
{
|
|
||||||
lcdClear();
|
|
||||||
lcdDrawNumber(0, 0, 65530, LEFT|UNSIGN);
|
|
||||||
EXPECT_TRUE(checkScreenshot("unsigned")) << "Unsigned numbers will be bad displayed";
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TEST(outdezNAtt, testBigNumbers)
|
TEST(outdezNAtt, testBigNumbers)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user