base-station/Firmware/lib/SerialCommunicator/SerialCommunicator.cpp

8 lines
277 B
C++
Raw Normal View History

2022-04-09 20:07:19 +02:00
#include <SerialCommunicator.h>
#include <HardwareSerial.h>
SerialCommunicator::SerialCommunicator(HardwareSerial &p_out, int baudRate, int timeout, __SIZE_TYPE__ bufferSize) : StreamCommunicator(p_out, bufferSize)
{
p_out.begin(baudRate);
p_out.setTimeout(timeout);
}