Merge pull request #11870 from s-hadinger/zigbee_flash_fix2

Zigbee fix flash size detection
This commit is contained in:
s-hadinger 2021-04-24 18:40:03 +02:00 committed by GitHub
commit 138aeb6121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);