mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
add ifndef to ensure "tasmota-minimal" still builds
This commit is contained in:
parent
aedfe35b01
commit
d966f1f74f
@ -79,6 +79,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef USE_TIMEPROP
|
#ifdef USE_TIMEPROP
|
||||||
|
#ifndef FIRMWARE_MINIMAL
|
||||||
|
|
||||||
# include "Timeprop.h"
|
# include "Timeprop.h"
|
||||||
|
|
||||||
@ -153,6 +154,7 @@ bool Timeprop_Command()
|
|||||||
char command [CMDSZ];
|
char command [CMDSZ];
|
||||||
bool serviced = true;
|
bool serviced = true;
|
||||||
uint8_t ua_prefix_len = strlen(D_CMND_TIMEPROP); // to detect prefix of command
|
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: "
|
snprintf_P(log_data, sizeof(log_data), "Command called: "
|
||||||
"index: %d data_len: %d payload: %d topic: %s data: %s\n",
|
"index: %d data_len: %d payload: %d topic: %s data: %s\n",
|
||||||
@ -220,4 +222,5 @@ bool Xdrv48(byte function)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // FIRMWARE_MINIMAL
|
||||||
#endif // USE_TIMEPROP
|
#endif // USE_TIMEPROP
|
||||||
|
@ -129,6 +129,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef USE_PID
|
#ifdef USE_PID
|
||||||
|
#ifndef FIRMWARE_MINIMAL
|
||||||
|
|
||||||
#include "PID.h"
|
#include "PID.h"
|
||||||
|
|
||||||
@ -410,4 +411,5 @@ bool Xdrv49(byte function)
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
#endif // FIRMWARE_MINIMAL
|
||||||
#endif // USE_PID
|
#endif // USE_PID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user