aboutsummaryrefslogtreecommitdiffhomepage
path: root/source/Core/Drivers
diff options
context:
space:
mode:
authorBen V. Brown <[email protected]>2024-06-08 14:33:06 +1000
committerGitHub <[email protected]>2024-06-08 14:33:06 +1000
commit14b92cde08359d4efec6e426b08c7ac7b9bee61d (patch)
tree850d6ee5e6d6c761a504e79d36d4da280bdbf126 /source/Core/Drivers
parent442dbd982e83fc1872d638acac952047e03b72e8 (diff)
downloadIronOS-14b92cde08359d4efec6e426b08c7ac7b9bee61d.tar.gz
IronOS-14b92cde08359d4efec6e426b08c7ac7b9bee61d.zip
Pinecilv2 adc v2 (#1916)
* Updated NTC lookup * remove float compute from adc (as we dont use it) * Updated adc settings * Updated ADC Init * Custom max temp lookup * Mask Timer around changing timer rate * Use timer channels in sane order * Update IRQ.cpp * Remove ADC dummy wait on start/stop * Dont use ADC IRQ * Disable sampling delay * Update Setup.cpp * PinecilV2 disable ROM driver utils Always use our source * Force settings upgrade on PinecilV2 Fix forced settings upgrade on Pinecilv2 * Prevent ADC rollover * Update Setup.cpp * ADC cleanup * Rollover prevention * Measure tip temperature 2nd * Rebase Buffalo SDK to 1.4.5 (#1923) * Update bl702_adc.c * Update board.c * . * Update bl702_adc.c * Import updated hal_drv * Remove accidental dupe of stack in linker * First pass update BLE stack * Update ReleaseNotes * Update push.yml * Drop BT Audio which we dont use * . * Reformat * Update conn.c * Update hog.c
Diffstat (limited to 'source/Core/Drivers')
-rw-r--r--source/Core/Drivers/TipThermoModel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Core/Drivers/TipThermoModel.cpp b/source/Core/Drivers/TipThermoModel.cpp
index 29edc08d..f52f4733 100644
--- a/source/Core/Drivers/TipThermoModel.cpp
+++ b/source/Core/Drivers/TipThermoModel.cpp
@@ -89,7 +89,11 @@ TemperatureType_t TipThermoModel::getTipInF(bool sampleNow) {
}
TemperatureType_t TipThermoModel::getTipMaxInC() {
+#ifdef CUSTOM_MAX_TEMP_C
+ return getCustomTipMaxInC();
+#else
TemperatureType_t maximumTipTemp = TipThermoModel::convertTipRawADCToDegC(ADC_MAX_READING - 1);
maximumTipTemp += getHandleTemperature(0) / 10; // Add handle offset
return maximumTipTemp - 1;
+#endif
}