Added display reconditioning function

This commit is contained in:
Mark Qvist 2024-12-31 14:20:43 +01:00
parent 571e7d7105
commit 6c82de161c
3 changed files with 2 additions and 4 deletions

View File

@ -181,8 +181,8 @@ upload-heltec32_v3:
arduino-cli upload -p /dev/ttyUSB0 --fqbn esp32:esp32:heltec_wifi_lora_32_V3
@sleep 1
rnodeconf /dev/ttyUSB0 --firmware-hash $$(./partition_hashes ./build/esp32.esp32.heltec_wifi_lora_32_V3/RNode_Firmware.ino.bin)
#@sleep 3
#python ./Release/esptool/esptool.py --chip esp32-s3 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x210000 ./Release/console_image.bin
@sleep 3
python ./Release/esptool/esptool.py --chip esp32-s3 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x210000 ./Release/console_image.bin
upload-tdeck:
arduino-cli upload -p /dev/ttyACM0 --fqbn esp32:esp32:esp32s3

View File

@ -1124,7 +1124,6 @@ void serialCallback(uint8_t sbyte) {
ESCAPE = false;
}
if (sbyte > 0x00) recondition_display = true;
display_unblank();
}
#endif
} else if (command == CMD_NP_INT) {

View File

@ -1510,7 +1510,6 @@ void db_conf_save(uint8_t val) {
void drot_conf_save(uint8_t val) {
#if HAS_DISPLAY
if (val >= 0x00 and val <= 0x03) {
eeprom_update(eeprom_addr(ADDR_CONF_BSET), CONF_OK_BYTE);
eeprom_update(eeprom_addr(ADDR_CONF_DROT), val);
hard_reset();
}