From 8c2c1e5c36454b91c096785b3fb13c8ef22863d4 Mon Sep 17 00:00:00 2001 From: EdJoPaTo Date: Fri, 4 Feb 2022 18:14:49 +0100 Subject: [PATCH] OTA: optional password field Allows to omit the password field. Currently I have to set `NULL` in order to use it. --- src/EspSimpleRemoteUpdate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EspSimpleRemoteUpdate.h b/src/EspSimpleRemoteUpdate.h index dc8a006..000ac01 100644 --- a/src/EspSimpleRemoteUpdate.h +++ b/src/EspSimpleRemoteUpdate.h @@ -77,7 +77,7 @@ class EspSimpleRemoteUpdate { } } - void enableOTA(const char* password, const uint16_t port = 0) { + void enableOTA(const char* password = NULL, const uint16_t port = 0) { if(_enableDebugMessages) Serial.printf("UPDATER: Enabling Arduino OTA ...\n");