mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-06 13:48:29 +00:00
Fix build errors for other platforms
This commit is contained in:
parent
661894f9f9
commit
e1914dd464
@ -22,8 +22,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.*/
|
SOFTWARE.*/
|
||||||
|
|
||||||
|
#include "configuration.h"
|
||||||
#include "DebugConfiguration.h"
|
#include "DebugConfiguration.h"
|
||||||
|
|
||||||
|
#if HAS_WIFI || HAS_ETHERNET
|
||||||
|
|
||||||
Syslog::Syslog(UDP &client)
|
Syslog::Syslog(UDP &client)
|
||||||
{
|
{
|
||||||
this->_client = &client;
|
this->_client = &client;
|
||||||
@ -219,3 +222,5 @@ inline bool Syslog::_sendLog(uint16_t pri, const __FlashStringHelper *message)
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
@ -110,7 +110,13 @@
|
|||||||
|
|
||||||
#if HAS_ETHERNET
|
#if HAS_ETHERNET
|
||||||
#include <RAK13800_W5100S.h>
|
#include <RAK13800_W5100S.h>
|
||||||
#endif
|
#endif // HAS_ETHERNET
|
||||||
|
|
||||||
|
#if HAS_WIFI
|
||||||
|
#include <wifi.h>
|
||||||
|
#endif // HAS_WIFI
|
||||||
|
|
||||||
|
#if HAS_WIFI || HAS_ETHERNET
|
||||||
|
|
||||||
class Syslog
|
class Syslog
|
||||||
{
|
{
|
||||||
@ -151,4 +157,6 @@ class Syslog
|
|||||||
bool logf(uint16_t pri, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
|
bool logf(uint16_t pri, const char *fmt, ...) __attribute__((format(printf, 3, 4)));
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // HAS_ETHERNET || HAS_WIFI
|
||||||
|
|
||||||
|
#endif // SYSLOG_H
|
Loading…
Reference in New Issue
Block a user