From d122a9fb52c9ef1bd0ec332ec0807dbae66d2dc4 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sat, 22 Feb 2025 15:19:43 +1100 Subject: [PATCH] Dont adjust pinecilv2 max temp by Coe --- source/Core/BSP/Pinecilv2/BSP.cpp | 14 +------------- source/Core/BSP/Pinecilv2/configuration.h | 1 - 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/source/Core/BSP/Pinecilv2/BSP.cpp b/source/Core/BSP/Pinecilv2/BSP.cpp index 7eb3c99b..29af0ba9 100644 --- a/source/Core/BSP/Pinecilv2/BSP.cpp +++ b/source/Core/BSP/Pinecilv2/BSP.cpp @@ -10,6 +10,7 @@ #include "TipThermoModel.h" #include "USBPD.h" #include "Utils.hpp" +#include "bflb_platform.h" #include "bl702_adc.h" #include "configuration.h" #include "crc32.h" @@ -282,16 +283,3 @@ void showBootLogo(void) { BootLogo::handleShowingLogo(scratch); } - -TemperatureType_t getCustomTipMaxInC() { - // have to lookup the max temp while being aware of the coe scaling value - float max_reading = ADC_MAX_READING - 1.0; - - if (adcGainCoeffCal.adcGainCoeffEnable) { - max_reading /= adcGainCoeffCal.coe; - } - - TemperatureType_t maximumTipTemp = TipThermoModel::convertTipRawADCToDegC(max_reading); - maximumTipTemp += getHandleTemperature(0) / 10; // Add handle offset - return maximumTipTemp - 1; -} diff --git a/source/Core/BSP/Pinecilv2/configuration.h b/source/Core/BSP/Pinecilv2/configuration.h index 0f21f138..e50b7225 100644 --- a/source/Core/BSP/Pinecilv2/configuration.h +++ b/source/Core/BSP/Pinecilv2/configuration.h @@ -161,7 +161,6 @@ #define OLED_96x16 1 #define TEMP_NTC #define ACCEL_BMA -#define CUSTOM_MAX_TEMP_C 1 // Uses custom max temp lookup #define ACCEL_SC7 #define HALL_SENSOR #define HALL_SI7210