@@ -100,12 +100,13 @@ bool gpio_monitor_helper(int port, struct EventStruct *event, const char *Line)
100100 globalMapPortStatus[key].state = state;
101101
102102 if (state == -1 ) { globalMapPortStatus[key].mode = PIN_MODE_OFFLINE; }
103-
103+ # ifndef BUILD_MINIMAL_OTA
104104 if (loglevelActiveFor (LOG_LEVEL_INFO)) {
105105 addLog (LOG_LEVEL_INFO, concat (
106106 logPrefix,
107107 strformat (F (" port #%d: added to monitor list." ), port)));
108108 }
109+ #endif
109110 String dummy;
110111 SendStatusOnlyIfNeeded (event, SEARCH_PIN_STATE, key, dummy, 0 );
111112
@@ -147,11 +148,13 @@ bool gpio_unmonitor_helper(int port, struct EventStruct *event, const char *Line
147148 SendStatusOnlyIfNeeded (event, SEARCH_PIN_STATE, key, dummy, 0 );
148149
149150 removeMonitorFromPort (key);
151+ #ifndef BUILD_MINIMAL_OTA
150152 if (loglevelActiveFor (LOG_LEVEL_INFO)) {
151153 addLog (LOG_LEVEL_INFO, concat (
152154 logPrefix,
153155 strformat (F (" port #%d: removed from monitor list." ), port)));
154156 }
157+ #endif
155158
156159 return true ;
157160 } else {
@@ -414,7 +417,9 @@ const __FlashStringHelper * Command_GPIO_RTTTL(struct EventStruct *event, const
414417 return return_command_success_flashstr ();
415418 }
416419 #else // if FEATURE_RTTTL
420+ #ifndef BUILD_MINIMAL_OTA
417421 addLog (LOG_LEVEL_ERROR, F (" RTTTL: command not included in build" ));
422+ #endif
418423 #endif // if FEATURE_RTTTL
419424 return return_command_failed_flashstr ();
420425}
0 commit comments