Skip to content

Commit

Permalink
TC_SerialPorts only support linux/mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Sep 2, 2024
1 parent be2b763 commit 5efade0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions util/include/util/tc_serialport.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
#include <unistd.h>
#include <termios.h>
#include <cstring>
#include "util/tc_platform.h"
#include "util/tc_ex.h"
#include "util/tc_epoller.h"
#include "util/tc_network_buffer.h"

#if TARGET_PLATFORM_LINUX || TARGET_PLATFORM_IOS

namespace tars
{

Expand Down Expand Up @@ -315,3 +318,4 @@ class TC_SerialPortGroup

}

#endif
4 changes: 4 additions & 0 deletions util/src/tc_serialport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include "util/tc_serialport.h"

#if TARGET_PLATFORM_LINUX || TARGET_PLATFORM_IOS

namespace tars
{

Expand Down Expand Up @@ -423,3 +425,5 @@ int TC_SerialPort::recv(void *buf, uint32_t len)
}

}

#endif

0 comments on commit 5efade0

Please sign in to comment.