mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-07 16:23:38 +03:00
Initialize _ledPin (#7487)
* Initialize _ledPin _ledPin should be initialized to -1 in the constructor to avoid setting a random pin when calling Updater::end without having called Updater::begin before. This happens, for example, in the Homie software * Fix field sequence
This commit is contained in:
parent
83fc47f6d9
commit
0e12906950
@ -35,6 +35,7 @@ UpdaterClass::UpdaterClass()
|
|||||||
, _startAddress(0)
|
, _startAddress(0)
|
||||||
, _currentAddress(0)
|
, _currentAddress(0)
|
||||||
, _command(U_FLASH)
|
, _command(U_FLASH)
|
||||||
|
, _ledPin(-1)
|
||||||
, _hash(nullptr)
|
, _hash(nullptr)
|
||||||
, _verify(nullptr)
|
, _verify(nullptr)
|
||||||
, _progress_callback(nullptr)
|
, _progress_callback(nullptr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user