mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 06:47:17 +00:00
Merge pull request #11870 from s-hadinger/zigbee_flash_fix2
Zigbee fix flash size detection
This commit is contained in:
commit
138aeb6121
@ -29,7 +29,7 @@ extern FS *dfsp;
|
||||
extern "C" uint32_t _FS_end;
|
||||
// Is it ok to write to bank 0x402FF000
|
||||
bool flash_valid(void) {
|
||||
return (_FS_end > 0x40280000) && (_FS_end < 0x402FF000);
|
||||
return (((uint32_t)&_FS_end) > 0x40280000) && (((uint32_t)&_FS_end) < 0x402FF000);
|
||||
}
|
||||
|
||||
void hydrateSingleDevice(const SBuffer & buf_d);
|
||||
|
Loading…
x
Reference in New Issue
Block a user