Added CPU temperature measurement and reporting on ESP32S3
This commit is contained in:
11
Utilities.h
11
Utilities.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user