diff --git a/source/Core/BSP/Sequre/Power.cpp b/source/Core/BSP/Sequre/Power.cpp index a72105e8..649bf370 100644 --- a/source/Core/BSP/Sequre/Power.cpp +++ b/source/Core/BSP/Sequre/Power.cpp @@ -1,10 +1,10 @@ #include "BSP.h" #include "BSP_Power.h" +#include "FS2711.hpp" #include "Pins.h" #include "QC3.h" #include "Settings.h" #include "USBPD.h" -#include "FS2711.hpp" #include "configuration.h" void power_check() { @@ -27,16 +27,16 @@ void power_check() { #endif } -bool getIsPoweredByDCIN() { +bool getIsPoweredByDCIN() { #if POW_PD_EXT == 2 && defined(POW_DC) if (!FS2711::has_run_selection()) { return true; - } else if(FS2711::debug_get_state().source_voltage > 0) { + } else if (FS2711::debug_get_state().source_voltage > 0) { return false; } else { return true; } #else - return false; + return false; #endif } diff --git a/source/Core/BSP/Sequre/ThermoModel.cpp b/source/Core/BSP/Sequre/ThermoModel.cpp index 798cdcd3..31fcdf29 100644 --- a/source/Core/BSP/Sequre/ThermoModel.cpp +++ b/source/Core/BSP/Sequre/ThermoModel.cpp @@ -8,7 +8,7 @@ #include "Utils.h" #include "configuration.h" -#if defined(TEMP_uV_LOOKUP_S60) +#if defined(TEMP_uV_LOOKUP_S60) TemperatureType_t TipThermoModel::convertuVToDegC(uint32_t tipuVDelta) { return (tipuVDelta * 50) / 485; } #elif defined(TEMP_uV_LOOKUP_S99) // 42.85 uV / K -> 1/42.85 K/uV = 20/857 diff --git a/source/Core/BSP/Sequre/configuration.h b/source/Core/BSP/Sequre/configuration.h index 04c40b2a..501cb85c 100644 --- a/source/Core/BSP/Sequre/configuration.h +++ b/source/Core/BSP/Sequre/configuration.h @@ -144,8 +144,8 @@ #define POWER_LIMIT_STEPS 5 #define OP_AMP_GAIN_STAGE 536 #define TEMP_uV_LOOKUP_S60 -#define USB_PD_VMAX 12 // Maximum voltage for PD to negotiate -#define USB_PD_TIMEOUT 1 // Default Timeout for USB-PD Protocol negotiation in x100ms +#define USB_PD_VMAX 12 // Maximum voltage for PD to negotiate +#define USB_PD_TIMEOUT 1 // Default Timeout for USB-PD Protocol negotiation in x100ms #define HARDWARE_MAX_WATTAGE_X10 600 @@ -176,8 +176,8 @@ #define POWER_LIMIT_STEPS 5 #define OP_AMP_GAIN_STAGE 536 #define TEMP_uV_LOOKUP_S60 -#define USB_PD_VMAX 20 // Maximum voltage for PD to negotiate -#define USB_PD_TIMEOUT 1 // Default Timeout for USB-PD Protocol negotiation in x100ms +#define USB_PD_VMAX 20 // Maximum voltage for PD to negotiate +#define USB_PD_TIMEOUT 1 // Default Timeout for USB-PD Protocol negotiation in x100ms #define HARDWARE_MAX_WATTAGE_X10 600 @@ -208,8 +208,8 @@ #define POWER_LIMIT_STEPS 5 #define OP_AMP_GAIN_STAGE 237 // Two sequential op-amps 1st: 1+(9k29/997R)=10.31 2nd: 1+(22k/1k)=23 -> 10.31*23=237 #define TEMP_uV_LOOKUP_S99 -#define USB_PD_VMAX 20 // Maximum voltage for PD to negotiate -#define USB_PD_TIMEOUT 2 // Default Timeout for USB-PD Protocol negotiation in x100ms +#define USB_PD_VMAX 20 // Maximum voltage for PD to negotiate +#define USB_PD_TIMEOUT 2 // Default Timeout for USB-PD Protocol negotiation in x100ms #define HARDWARE_MAX_WATTAGE_X10 1300