From e8f56806b62b4e3417419bd04af21dd484eb5384 Mon Sep 17 00:00:00 2001 From: Dennis Gunia Date: Tue, 21 Oct 2025 00:30:10 +0200 Subject: [PATCH] fix includes and type --- software/pc_client/src/devicemgr.h | 2 +- software/pc_client/src/main.c | 4 ++-- software/pc_client/src/sfbus-util.h | 2 +- software/pc_client/src/wsserver.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/software/pc_client/src/devicemgr.h b/software/pc_client/src/devicemgr.h index bd55945..e6607be 100644 --- a/software/pc_client/src/devicemgr.h +++ b/software/pc_client/src/devicemgr.h @@ -7,7 +7,7 @@ * */ -#include "sfbus.h" +#include "serial/sfbus.h" #include #include // Error integer and strerror() function #include // Contains file controls like O_RDWR diff --git a/software/pc_client/src/main.c b/software/pc_client/src/main.c index ba136e5..5583e18 100644 --- a/software/pc_client/src/main.c +++ b/software/pc_client/src/main.c @@ -18,9 +18,9 @@ #include "console.h" #include "devicemgr.h" -#include "ftdi485.h" #include "logging/logger.h" -#include "sfbus.h" +#include "serial/ftdi485.h" +#include "serial/sfbus.h" extern char *optarg; diff --git a/software/pc_client/src/sfbus-util.h b/software/pc_client/src/sfbus-util.h index 8af077b..70481c2 100644 --- a/software/pc_client/src/sfbus-util.h +++ b/software/pc_client/src/sfbus-util.h @@ -7,7 +7,7 @@ * */ -#include "sfbus.h" +#include "serial/sfbus.h" #include #include #include diff --git a/software/pc_client/src/wsserver.c b/software/pc_client/src/wsserver.c index 6affbe8..491d414 100644 --- a/software/pc_client/src/wsserver.c +++ b/software/pc_client/src/wsserver.c @@ -55,7 +55,7 @@ void ws_messagehandler(ws_cli_conn_t client, const unsigned char *msg, uint64_t log_message(LOG_DEBUG, "WebSocket received message: %s (%zu), from: %s", msg, size, cli); json_tokener *tok = json_tokener_new(); - json_object *req = json_tokener_parse_ex(tok, msg, size); + json_object *req = json_tokener_parse_ex(tok, (const char*)msg, size); enum json_tokener_error jerr; jerr = json_tokener_get_error(tok); if (jerr != json_tokener_success)