mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-11-24 00:43:08 -05:00
Added CPU temperature measurement and reporting on ESP32S3
This commit is contained in:
parent
8a3db4f0c3
commit
89ea59bbe6
3 changed files with 29 additions and 0 deletions
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue