mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-05-06 08:34:58 -04:00
Added display reconditioning function
This commit is contained in:
parent
571e7d7105
commit
6c82de161c
3 changed files with 2 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -181,8 +181,8 @@ upload-heltec32_v3:
|
||||||
arduino-cli upload -p /dev/ttyUSB0 --fqbn esp32:esp32:heltec_wifi_lora_32_V3
|
arduino-cli upload -p /dev/ttyUSB0 --fqbn esp32:esp32:heltec_wifi_lora_32_V3
|
||||||
@sleep 1
|
@sleep 1
|
||||||
rnodeconf /dev/ttyUSB0 --firmware-hash $$(./partition_hashes ./build/esp32.esp32.heltec_wifi_lora_32_V3/RNode_Firmware.ino.bin)
|
rnodeconf /dev/ttyUSB0 --firmware-hash $$(./partition_hashes ./build/esp32.esp32.heltec_wifi_lora_32_V3/RNode_Firmware.ino.bin)
|
||||||
#@sleep 3
|
@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
|
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:
|
upload-tdeck:
|
||||||
arduino-cli upload -p /dev/ttyACM0 --fqbn esp32:esp32:esp32s3
|
arduino-cli upload -p /dev/ttyACM0 --fqbn esp32:esp32:esp32s3
|
||||||
|
|
|
@ -1124,7 +1124,6 @@ void serialCallback(uint8_t sbyte) {
|
||||||
ESCAPE = false;
|
ESCAPE = false;
|
||||||
}
|
}
|
||||||
if (sbyte > 0x00) recondition_display = true;
|
if (sbyte > 0x00) recondition_display = true;
|
||||||
display_unblank();
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (command == CMD_NP_INT) {
|
} else if (command == CMD_NP_INT) {
|
||||||
|
|
|
@ -1510,7 +1510,6 @@ void db_conf_save(uint8_t val) {
|
||||||
void drot_conf_save(uint8_t val) {
|
void drot_conf_save(uint8_t val) {
|
||||||
#if HAS_DISPLAY
|
#if HAS_DISPLAY
|
||||||
if (val >= 0x00 and val <= 0x03) {
|
if (val >= 0x00 and val <= 0x03) {
|
||||||
eeprom_update(eeprom_addr(ADDR_CONF_BSET), CONF_OK_BYTE);
|
|
||||||
eeprom_update(eeprom_addr(ADDR_CONF_DROT), val);
|
eeprom_update(eeprom_addr(ADDR_CONF_DROT), val);
|
||||||
hard_reset();
|
hard_reset();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue