1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

Use direct member initialization instead of ctr initialisation (#7556)

This removes a bit of code repetition.
This commit is contained in:
Dirk Mueller
2020-08-28 16:23:05 +02:00
committed by GitHub
parent c366f84520
commit 59873908c4
4 changed files with 25 additions and 38 deletions

View File

@ -31,19 +31,6 @@ extern "C" {
#endif
ArduinoOTAClass::ArduinoOTAClass()
: _port(0)
, _udp_ota(0)
, _initialized(false)
, _rebootOnSuccess(true)
, _useMDNS(true)
, _state(OTA_IDLE)
, _size(0)
, _cmd(0)
, _ota_port(0)
, _start_callback(NULL)
, _end_callback(NULL)
, _error_callback(NULL)
, _progress_callback(NULL)
{
}