swimtracker-firmware/firmware/lib/basic/MockSerial.h

22 lines
347 B
C
Raw Permalink Normal View History

#pragma once
#include <iostream>
2023-08-28 15:06:29 +02:00
#ifdef PLATFORM_NATIVE
class SerialMock {
public:
template< typename T>
static inline void print(const T & str) {
std::cout << str;
}
template< typename T>
static inline void println(const T & str) {
std::cout << str << std::endl;
}
};
2023-08-28 15:06:29 +02:00
static SerialMock Serial;
#endif