mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-08 14:12:05 +00:00
don't build FakeUART on other platforms
This commit is contained in:
parent
7ee95f2a0c
commit
8c53ce82f2
@ -1,5 +1,7 @@
|
|||||||
#include "FakeUART.h"
|
#include "FakeUART.h"
|
||||||
|
|
||||||
|
#ifdef SENSECAP_INDICATOR
|
||||||
|
|
||||||
FakeUART::FakeUART() {}
|
FakeUART::FakeUART() {}
|
||||||
|
|
||||||
void FakeUART::begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert, unsigned long timeout_ms,
|
void FakeUART::begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert, unsigned long timeout_ms,
|
||||||
@ -88,3 +90,5 @@ size_t FakeUART::stuff_buffer(const char *buffer, size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
FakeUART *FakeSerial;
|
FakeUART *FakeSerial;
|
||||||
|
|
||||||
|
#endif
|
@ -3,6 +3,8 @@
|
|||||||
#ifndef FAKEUART_H
|
#ifndef FAKEUART_H
|
||||||
#define FAKEUART_H
|
#define FAKEUART_H
|
||||||
|
|
||||||
|
#ifdef SENSECAP_INDICATOR
|
||||||
|
|
||||||
#include "../IndicatorSerial.h"
|
#include "../IndicatorSerial.h"
|
||||||
#include <RingBuf.h>
|
#include <RingBuf.h>
|
||||||
#include <Stream.h>
|
#include <Stream.h>
|
||||||
@ -37,4 +39,6 @@ class FakeUART : public Stream
|
|||||||
|
|
||||||
extern FakeUART *FakeSerial;
|
extern FakeUART *FakeSerial;
|
||||||
|
|
||||||
|
#endif // SENSECAP_INDICATOR
|
||||||
|
|
||||||
#endif // FAKEUART_H
|
#endif // FAKEUART_H
|
Loading…
Reference in New Issue
Block a user