diff --git a/source/Core/Threads/UI/drawing/mono_96x16/draw_profile_advanced.cpp b/source/Core/Threads/UI/drawing/mono_96x16/draw_profile_advanced.cpp index 4d3a8c2f..1b6085e8 100644 --- a/source/Core/Threads/UI/drawing/mono_96x16/draw_profile_advanced.cpp +++ b/source/Core/Threads/UI/drawing/mono_96x16/draw_profile_advanced.cpp @@ -1,6 +1,6 @@ #include "ui_drawing.hpp" -void ui_draw_soldering_profile_advanced(TemperatureType_t tipTemp, TemperatureType_t profileCurrentTargetTemp, uint32_t phaseElapsedSeconds, uint32_t phase,const uint32_t phaseTimeGoal) { +void ui_draw_soldering_profile_advanced(TemperatureType_t tipTemp, TemperatureType_t profileCurrentTargetTemp, uint32_t phaseElapsedSeconds, uint32_t phase, const uint32_t phaseTimeGoal) { // print temperature if (OLED::getRotation()) { OLED::setCursor(48, 0); @@ -53,4 +53,4 @@ void ui_draw_soldering_profile_advanced(TemperatureType_t tipTemp, TemperatureTy OLED::printNumber(phaseTimeGoal % 60, 2, FontStyle::SMALL, false); } } -} \ No newline at end of file +} diff --git a/source/Core/Threads/UI/logic/SolderingProfile.cpp b/source/Core/Threads/UI/logic/SolderingProfile.cpp index addea04b..3746ae5e 100644 --- a/source/Core/Threads/UI/logic/SolderingProfile.cpp +++ b/source/Core/Threads/UI/logic/SolderingProfile.cpp @@ -126,7 +126,7 @@ OperatingMode gui_solderingProfileMode(const ButtonState buttons, guiContext *cx // Draw in the screen details if (getSettingValue(SettingsOptions::DetailedSoldering)) { - ui_draw_soldering_profile_advanced(tipTemp, profileCurrentTargetTemp, phaseElapsedSeconds, cxt->scratch_state.state1,cxt->scratch_state.state2); + ui_draw_soldering_profile_advanced(tipTemp, profileCurrentTargetTemp, phaseElapsedSeconds, cxt->scratch_state.state1, cxt->scratch_state.state2); ui_draw_soldering_power_status(false); } else { ui_draw_soldering_basic_status(false); diff --git a/source/Core/Threads/UI/logic/USBPDDebug_FS2711.cpp b/source/Core/Threads/UI/logic/USBPDDebug_FS2711.cpp index ea54b6a5..473ca006 100644 --- a/source/Core/Threads/UI/logic/USBPDDebug_FS2711.cpp +++ b/source/Core/Threads/UI/logic/USBPDDebug_FS2711.cpp @@ -9,13 +9,13 @@ OperatingMode showPDDebug(const ButtonState buttons, guiContext *cxt) { // Print out the USB-PD state // Basically this is like the Debug menu, but instead we want to print out the PD status uint16_t *screen = &(cxt->scratch_state.state1); - + if (*screen > 7) { *screen = 0; } if (*screen == 0) { // Print the PD Debug state - fs2711_state_t state = FS2711::debug_get_state(); + fs2711_state_t state = FS2711::debug_get_state(); ui_draw_usb_pd_debug_state(0, state.pdo_num); } else { diff --git a/source/Core/Threads/UI/logic/USBPDDebug_FUSB.cpp b/source/Core/Threads/UI/logic/USBPDDebug_FUSB.cpp index 82613491..763f375f 100644 --- a/source/Core/Threads/UI/logic/USBPDDebug_FUSB.cpp +++ b/source/Core/Threads/UI/logic/USBPDDebug_FUSB.cpp @@ -10,17 +10,17 @@ OperatingMode showPDDebug(const ButtonState buttons, guiContext *cxt) { if ((*screen) == 0) { // Print the PD state machine -uint8_t vbusState=0; - if (USBPowerDelivery::fusbPresent()) { + uint8_t vbusState = 0; + if (USBPowerDelivery::fusbPresent()) { if (USBPowerDelivery::negotiationComplete() || (xTaskGetTickCount() > (TICKS_SECOND * 10))) { if (!USBPowerDelivery::isVBUSConnected()) { - vbusState=2; + vbusState = 2; } else { - vbusState=1; + vbusState = 1; } } } - ui_draw_usb_pd_debug_state(vbusState,USBPowerDelivery::getStateNumber()); + ui_draw_usb_pd_debug_state(vbusState, USBPowerDelivery::getStateNumber()); } else { // Print out the Proposed power options one by one auto lastCaps = USBPowerDelivery::getLastSeenCapabilities(); diff --git a/source/Core/Threads/UI/logic/USBPDDebug_HUSB238.cpp b/source/Core/Threads/UI/logic/USBPDDebug_HUSB238.cpp index 1bdf252a..41b739f8 100644 --- a/source/Core/Threads/UI/logic/USBPDDebug_HUSB238.cpp +++ b/source/Core/Threads/UI/logic/USBPDDebug_HUSB238.cpp @@ -14,7 +14,7 @@ OperatingMode showPDDebug(const ButtonState buttons, guiContext *cxt) { if (*screen == 0) { // Print the PD Debug state uint16_t temp = hub238_debug_state(); - ui_draw_usb_pd_debug_state( 0,temp); + ui_draw_usb_pd_debug_state(0, temp); } else { // Print out the Proposed power options one by one