summaryrefslogtreecommitdiff
path: root/client/serial_win32.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-05 16:17:32 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-05 16:17:32 +0200
commitfa6af27248ec1fcbfdec433ea16154b7bdae045f (patch)
tree235c9a780abddca59f218d08387e2b7fd1afeb0f /client/serial_win32.c
parent1f8a640303976ddcc3605a9b6af8fb398dc7c300 (diff)
fix windows compatibility
Diffstat (limited to 'client/serial_win32.c')
-rw-r--r--client/serial_win32.c19
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