Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralim committed Apr 9, 2024
1 parent 5c518bd commit b165584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/Core/Src/settingsGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static bool showHallEffect(void);

// Menu functions

#if defined(POW_DC) || defined(POW_QC)
#if defined(POW_DC) || defined(POW_QC) || defined(POW_PD)
static void displayPowerMenu(void);
#endif /* POW_DC or POW_QC */

Expand Down Expand Up @@ -208,7 +208,7 @@ const menuitem rootSettingsMenu[] {
* // Language
* Exit
*/
#if defined(POW_DC) || defined(POW_QC)|| defined(POW_PD)
#if defined(POW_DC) || defined(POW_QC) || defined(POW_PD)
/* Power */
{0, nullptr, displayPowerMenu, nullptr, SettingsOptions::SettingsOptionsLength, SettingsItemIndex::NUM_ITEMS, 0},
#endif
Expand Down Expand Up @@ -1003,7 +1003,7 @@ static void displayMenu(size_t index) {
OLED::drawArea(OLED_WIDTH - SETTINGS_ICON_WIDTH - 2, 0, SETTINGS_ICON_WIDTH, SETTINGS_ICON_HEIGHT, (&SettingsMenuIcons[index][(SETTINGS_ICON_WIDTH * (SETTINGS_ICON_HEIGHT / 8)) * currentFrame]));
}

#if defined(POW_DC) || defined(POW_QC)
#if defined(POW_DC) || defined(POW_QC) || defined(POW_PD)
static void displayPowerMenu(void) { displayMenu(0); }

#endif /* POW_DC or POW_QC */
Expand Down
1 change: 0 additions & 1 deletion source/Core/Threads/UI/logic/Sleep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ OperatingMode gui_SolderingSleepingMode(const ButtonState buttons, guiContext *c
ui_draw_soldering_detailed_sleep(tipTemp);
} else {
ui_draw_soldering_basic_sleep(tipTemp);

}

if (!shouldBeSleeping()) {
Expand Down

0 comments on commit b165584

Please sign in to comment.