File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ add_library(PropulsionFunctions
48
48
lib/Command_Interpreter.h
49
49
lib/Wiring.cpp
50
50
lib/Wiring.h
51
+ lib/Serial.cpp
52
+ lib/Serial.h
51
53
)
52
54
include (GoogleTest)
53
55
Original file line number Diff line number Diff line change 3
3
#include " Serial.h"
4
4
5
5
6
- int serialOpen (const char *device, const int baud) { // from WiringPi
6
+ int serialOpen (const char *device, const int baud) { // from WiringPi
7
7
struct termios options ;
8
8
speed_t myBaud ;
9
9
int status, fd ;
Original file line number Diff line number Diff line change 10
10
#include < cstdint>
11
11
#include < string>
12
12
13
- int serialOpen (const char *device, const int baud);
13
+ int serialOpen (const char *device, const int baud);
14
14
void serialPuts (const int fd, const char *s);
15
15
int serialGetchar (const int fd);
16
16
void echoOn (int serial);
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ void WiringControl::printToSerial(const std::string& message) {
20
20
21
21
#else
22
22
23
- #include < Serial.h>
23
+ #include " Serial.h"
24
24
25
25
bool WiringControl::initializeSerial () {
26
26
if ((serial = serialOpen (" /dev/serial/by-id/usb-MicroPython_Board_in_FS_mode_e66130100f198434-if00" , 115200 )) < 0 ) {
You can’t perform that action at this time.
0 commit comments