This repository has been archived on 2023-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
old-monorepo/Devices/Control/Firmware/lib/SerialCommunicator/SerialCommunicator.cpp

8 lines
277 B
C++
Raw Normal View History

2022-02-04 16:01:30 +01: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);
2022-02-05 21:04:30 +01:00
p_out.setTimeout(timeout);
2022-02-04 16:01:30 +01:00
}