Added CPU temperature measurement and reporting on ESP32S3

This commit is contained in:
Mark Qvist 2025-11-10 16:39:09 +01:00
parent 8a3db4f0c3
commit 89ea59bbe6
3 changed files with 29 additions and 0 deletions

View file

@ -1014,6 +1014,17 @@ void kiss_indicate_battery() {
#endif
}
void kiss_indicate_temperature() {
#if MCU_VARIANT == MCU_ESP32 || MCU_VARIANT == MCU_NRF52
float pmu_temp = pmu_temperature+PMU_TEMP_OFFSET;
uint8_t temp = (uint8_t)pmu_temp;
serial_write(FEND);
serial_write(CMD_STAT_TEMP);
escaped_serial_write(pmu_temp);
serial_write(FEND);
#endif
}
void kiss_indicate_btpin() {
#if HAS_BLUETOOTH || HAS_BLE == true
serial_write(FEND);