add ifndef to ensure "tasmota-minimal" still builds

This commit is contained in:
Marcus 2021-01-08 21:57:56 +01:00
parent aedfe35b01
commit d966f1f74f
2 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,7 @@
#ifdef USE_TIMEPROP
#ifndef FIRMWARE_MINIMAL
# include "Timeprop.h"
@ -153,6 +154,7 @@ bool Timeprop_Command()
char command [CMDSZ];
bool serviced = true;
uint8_t ua_prefix_len = strlen(D_CMND_TIMEPROP); // to detect prefix of command
AddLog_P(LOG_LEVEL_ERROR, PSTR("TRP: Timeprop_Command called"));
/*
snprintf_P(log_data, sizeof(log_data), "Command called: "
"index: %d data_len: %d payload: %d topic: %s data: %s\n",
@ -220,4 +222,5 @@ bool Xdrv48(byte function)
return result;
}
#endif // FIRMWARE_MINIMAL
#endif // USE_TIMEPROP

View File

@ -129,6 +129,7 @@
#ifdef USE_PID
#ifndef FIRMWARE_MINIMAL
#include "PID.h"
@ -410,4 +411,5 @@ bool Xdrv49(byte function)
}
return result;
}
#endif // FIRMWARE_MINIMAL
#endif // USE_PID