mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
cosmetic changes 2
This commit is contained in:
parent
78049955dd
commit
fd7f1e6991
1 changed files with 0 additions and 26 deletions
|
@ -612,32 +612,6 @@ static void showDebugPage(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void showBBPage(void)
|
|
||||||
{
|
|
||||||
uint8_t rowIndex = PAGE_TITLE_LINE_COUNT;
|
|
||||||
int8_t fileNo;
|
|
||||||
if (isBlackboxDeviceWorking()){
|
|
||||||
switch (blackboxConfig()->device) {
|
|
||||||
case BLACKBOX_DEVICE_SDCARD:
|
|
||||||
fileNo = blackboxGetLogFileNo();
|
|
||||||
if( fileNo > 0){
|
|
||||||
tfp_sprintf(lineBuffer, "File no: %d", fileNo);
|
|
||||||
}else{
|
|
||||||
tfp_sprintf(lineBuffer, "Log not started!");
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
tfp_sprintf(lineBuffer, "Not supp. dev.");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
tfp_sprintf(lineBuffer, "BB not working");
|
|
||||||
}
|
|
||||||
|
|
||||||
padLineBuffer();
|
|
||||||
i2c_OLED_set_line(bus, rowIndex++);
|
|
||||||
i2c_OLED_send_string(bus, lineBuffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const pageEntry_t pages[PAGE_COUNT] = {
|
static const pageEntry_t pages[PAGE_COUNT] = {
|
||||||
{ PAGE_WELCOME, FC_FIRMWARE_NAME, showWelcomePage, PAGE_FLAGS_SKIP_CYCLING },
|
{ PAGE_WELCOME, FC_FIRMWARE_NAME, showWelcomePage, PAGE_FLAGS_SKIP_CYCLING },
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue