mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
Apply suggestions from code review
Co-authored-by: Yaya-Cout <yaya.cout@free.fr>
This commit is contained in:
@@ -57,4 +57,4 @@ public:
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -150,4 +150,4 @@ namespace STM32 {
|
||||
extern void rcc_deinit();
|
||||
extern void hal_deinit();
|
||||
extern void systick_deinit();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,4 @@ void Bootloader::AboutMenu::setup() {
|
||||
m_columns[2] = ColumnBinder(&m_default_columns[2]);
|
||||
m_columns[3] = ColumnBinder(&m_default_columns[3]);
|
||||
m_columns[4] = ColumnBinder(&m_default_columns[4]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ namespace Bootloader {
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -19,4 +19,4 @@ void Bootloader::CrashMenu::post_open() {
|
||||
for (;;) {
|
||||
// Infinite loop
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +16,4 @@ namespace Bootloader {
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -34,4 +34,4 @@ void Bootloader::DfuMenu::post_open() {
|
||||
} while (!Ion::USB::isEnumerated());
|
||||
Ion::USB::DFU(true, (void *)m_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,4 +141,4 @@ void Bootloader::HomeMenu::setup() {
|
||||
m_columns[3] = ColumnBinder(&m_default_columns[0]);
|
||||
m_columns[4] = ColumnBinder(&m_default_columns[1]);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,4 +38,4 @@ void Bootloader::InstallerMenu::setup() {
|
||||
m_columns[0] = ColumnBinder(&m_default_columns[0]);
|
||||
m_columns[1] = ColumnBinder(&m_default_columns[1]);
|
||||
m_columns[2] = ColumnBinder(&m_default_columns[2]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,4 @@ namespace Bootloader {
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -36,4 +36,4 @@ void Bootloader::SlotRecoveryMenu::post_open() {
|
||||
} while (!Ion::USB::isEnumerated());
|
||||
Ion::USB::DFU(true, (void *)m_data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,4 +16,4 @@ namespace Bootloader {
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -32,4 +32,4 @@ void Bootloader::WarningMenu::setup() {
|
||||
m_columns[3] = ColumnBinder(&m_default_columns[3]);
|
||||
m_columns[4] = ColumnBinder(&m_default_columns[4]);
|
||||
m_columns[5] = ColumnBinder(&m_default_columns[5]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,4 +14,4 @@ namespace Bootloader {
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -123,4 +123,4 @@ namespace Bootloader {
|
||||
};
|
||||
}
|
||||
|
||||
#endif // _BOOTLOADER_MENU_H_
|
||||
#endif // _BOOTLOADER_MENU_H_
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <ion.h>
|
||||
#include <ion/timing.h>
|
||||
|
||||
@@ -16,4 +16,4 @@ public:
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -5,14 +5,7 @@ namespace Bootloader {
|
||||
|
||||
class Messages {
|
||||
public:
|
||||
// TODO: Remove it when this fork will be updated
|
||||
#ifdef UPSILON_VERSION
|
||||
constexpr static const char * mainTitle = "Upsilon Calculator";
|
||||
#elif defined OMEGA_VERSION
|
||||
constexpr static const char * mainTitle = "Omega Calculator";
|
||||
#else
|
||||
constexpr static const char * mainTitle = "NumWorks Calculator";
|
||||
#endif
|
||||
|
||||
// home menu
|
||||
constexpr static const char * homeTitle = "Select a slot";
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
__attribute__ ((noreturn)) void ion_main(int argc, const char * const argv[]) {
|
||||
// Clear the screen
|
||||
Ion::Display::pushRectUniform(KDRect(0,0,320,240), KDColorWhite);
|
||||
Ion::Display::pushRectUniform(KDRect(0,0,320,240), KDColorBlack);
|
||||
// Initialize the backlight
|
||||
Ion::Backlight::init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user