diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-05 16:17:32 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-05 16:17:32 +0200 |
commit | fa6af27248ec1fcbfdec433ea16154b7bdae045f (patch) | |
tree | 235c9a780abddca59f218d08387e2b7fd1afeb0f /client/serial_win32.c | |
parent | 1f8a640303976ddcc3605a9b6af8fb398dc7c300 (diff) |
fix windows compatibility
Diffstat (limited to 'client/serial_win32.c')
-rw-r--r-- | client/serial_win32.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/client/serial_win32.c b/client/serial_win32.c index 9406a34..edc9db1 100644 --- a/client/serial_win32.c +++ b/client/serial_win32.c @@ -2,9 +2,20 @@ #include "serial.h" -bool w2_serial_read(uint8_t *target, uint8_t bytes); -bool w2_serial_write(uint8_t *target, uint8_t bytes); -void w2_serial_open(); -void w2_serial_close(); +int w2_serial_read() { + return 0x00; +} + +bool w2_serial_write(char *data, uint8_t length) { + return true; +} + +bool w2_serial_open(const char *port_name) { + return true; +} + +void w2_serial_close() { + return; +} #endif |