mirror of https://github.com/arendst/Tasmota.git
Keep legacy support
This commit is contained in:
parent
567c40675a
commit
5b0259e7c3
|
@ -700,7 +700,11 @@ void EspErase(uint32_t start_sector, uint32_t end_sector)
|
||||||
// bool result = EsptoolEraseSector(sector); // Esptool - erases flash completely (slow)
|
// bool result = EsptoolEraseSector(sector); // Esptool - erases flash completely (slow)
|
||||||
|
|
||||||
if (serial_output) {
|
if (serial_output) {
|
||||||
|
#ifdef ARDUINO_ESP8266_RELEASE_2_3_0
|
||||||
|
Serial.printf(D_LOG_APPLICATION D_ERASED_SECTOR " %d %s\n", sector, (result) ? D_OK : D_ERROR);
|
||||||
|
#else
|
||||||
Serial.printf_P(PSTR(D_LOG_APPLICATION D_ERASED_SECTOR " %d %s\n"), sector, (result) ? D_OK : D_ERROR);
|
Serial.printf_P(PSTR(D_LOG_APPLICATION D_ERASED_SECTOR " %d %s\n"), sector, (result) ? D_OK : D_ERROR);
|
||||||
|
#endif
|
||||||
delay(10);
|
delay(10);
|
||||||
} else {
|
} else {
|
||||||
yield();
|
yield();
|
||||||
|
|
|
@ -1119,7 +1119,11 @@ void CmndTlsDump(void) {
|
||||||
uint32_t end = start + tls_block_len -1;
|
uint32_t end = start + tls_block_len -1;
|
||||||
for (uint32_t pos = start; pos < end; pos += 0x10) {
|
for (uint32_t pos = start; pos < end; pos += 0x10) {
|
||||||
uint32_t* values = (uint32_t*)(pos);
|
uint32_t* values = (uint32_t*)(pos);
|
||||||
|
#ifdef ARDUINO_ESP8266_RELEASE_2_3_0
|
||||||
|
Serial.printf("%08x: %08x %08x %08x %08x\n", pos, bswap32(values[0]), bswap32(values[1]), bswap32(values[2]), bswap32(values[3]));
|
||||||
|
#else
|
||||||
Serial.printf_P(PSTR("%08x: %08x %08x %08x %08x\n"), pos, bswap32(values[0]), bswap32(values[1]), bswap32(values[2]), bswap32(values[3]));
|
Serial.printf_P(PSTR("%08x: %08x %08x %08x %08x\n"), pos, bswap32(values[0]), bswap32(values[1]), bswap32(values[2]), bswap32(values[3]));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // DEBUG_DUMP_TLS
|
#endif // DEBUG_DUMP_TLS
|
||||||
|
|
Loading…
Reference in New Issue