mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-07-28 04:07:47 +00:00
[PUYA] Fix patch v3 for PUYA support
This commit is contained in:
@@ -6,7 +6,7 @@ diff -urN 2.3.0.orig/cores/esp8266/Esp.cpp 2.3.0/cores/esp8266/Esp.cpp
|
||||
}
|
||||
|
||||
+bool EspClass::flashIsPuya(){
|
||||
+ return ((flash_chip_id & 0x000000ff) == 0x85) // 0x146085 PUYA
|
||||
+ return ((getFlashChipId() & 0x000000ff) == 0x85); // 0x146085 PUYA
|
||||
+}
|
||||
+
|
||||
bool EspClass::flashWrite(uint32_t offset, uint32_t *data, size_t size) {
|
||||
|
||||
+1
-1
@@ -5871,7 +5871,7 @@ void handle_sysinfo() {
|
||||
TXBuffer += formatToHex(flashChipId & 0xFF);
|
||||
|
||||
#ifdef PUYASUPPORT
|
||||
if (Esp.flashIsPuya()) {
|
||||
if (ESP.flashIsPuya()) {
|
||||
TXBuffer += F(" (PUYA, supported)");
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user