Skip to content

Commit 1339018

Browse files
committed
switched out the cast
1 parent a931150 commit 1339018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/Updater.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ bool UpdaterClass::begin(size_t size, int command, int ledPin, uint8_t ledOn) {
112112
//size of current sketch rounded to a sector
113113
size_t currentSketchSize = (ESP.getSketchSize() + FLASH_SECTOR_SIZE - 1) & (~(FLASH_SECTOR_SIZE - 1));
114114
//address of the end of the space available for sketch and update
115-
uint32_t updateEndAddress = (uint32_t)&_SKETCH_AREA_end - 0x40200000;
115+
uintptr_t updateEndAddress = (uintptr_t) &_SKETCH_AREA_end - 0x40200000;
116116

117117
//size of the update rounded to a sector
118118
size_t roundedSize = (size + FLASH_SECTOR_SIZE - 1) & (~(FLASH_SECTOR_SIZE - 1));

0 commit comments

Comments
 (0)