From b795a72ef43a046eaeae6f7d1abcf9325ae7951d Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 13 Jun 2020 12:46:38 +0200 Subject: [PATCH] Cosmetics (bootloader title bar) --- companion/src/process_flash.cpp | 2 +- companion/src/storage/firmwareinterface.cpp | 2 +- radio/src/targets/common/arm/stm32/bootloader/boot.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/companion/src/process_flash.cpp b/companion/src/process_flash.cpp index 50a07e522..ca8c3479e 100644 --- a/companion/src/process_flash.cpp +++ b/companion/src/process_flash.cpp @@ -292,7 +292,7 @@ void FlashProcess::errorWizard() DeviceStr = "Atmega 2561"; } } - if (fwexist==false) { + if (!fwexist) { QMessageBox::warning(nullptr, "Companion - Tip of the day", tr("Your radio uses a %1 CPU!!!\n\nPlease check advanced burn options to set the correct cpu type.").arg(DeviceStr)); } else { diff --git a/companion/src/storage/firmwareinterface.cpp b/companion/src/storage/firmwareinterface.cpp index f480ae527..a07ebbd67 100644 --- a/companion/src/storage/firmwareinterface.cpp +++ b/companion/src/storage/firmwareinterface.cpp @@ -64,7 +64,7 @@ FirmwareInterface::FirmwareInterface(const QString & filename): // old version format int index = version.lastIndexOf('-'); flavour = version.mid(0, index); - version = version.mid(index+1); + version = version.mid(index + 1); } date = seekLabel(DATE_MARK); time = seekLabel(TIME_MARK); diff --git a/radio/src/targets/common/arm/stm32/bootloader/boot.h b/radio/src/targets/common/arm/stm32/bootloader/boot.h index 4f8e7edc7..13e6e3036 100644 --- a/radio/src/targets/common/arm/stm32/bootloader/boot.h +++ b/radio/src/targets/common/arm/stm32/bootloader/boot.h @@ -24,7 +24,7 @@ #include "stamp.h" #if LCD_W < 212 - #define BOOTLOADER_TITLE " OTX Bootloader - " VERSION + #define BOOTLOADER_TITLE " Bootloader - " VERSION #else #define BOOTLOADER_TITLE " OpenTX Bootloader - " VERSION #endif