1
0
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:
Jorg Neves Bliesener 2020-07-26 18:39:55 +02:00 committed by GitHub
parent 83fc47f6d9
commit 0e12906950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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