From c58ad3984262711db1e3c5f8499394f542671f59 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Tue, 25 Nov 2025 15:38:54 +0100 Subject: [PATCH] Update to ACAP SDK 12.7.0 Change-Id: I4e2d52a92e933ea903ac2f0f5e14c8aca573ba7a Signed-off-by: Joakim Roubert --- Dockerfile | 2 +- manifest.json | 4 ++-- modbusacap.c | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 601e24f..2c8127e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ARG ARCH=aarch64 -ARG SDK_VERSION=12.2.0 +ARG SDK_VERSION=12.7.0 ARG SDK_IMAGE=docker.io/axisecp/acap-native-sdk ARG LIBMODBUS_VERSION=3.1.11 ARG BUILD_DIR=/usr/local/src diff --git a/manifest.json b/manifest.json index 722a7d1..0416872 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "schemaVersion": "1.7.0", + "schemaVersion": "1.8.0", "acapPackageConf": { "setup": { "appName": "modbusacap", @@ -7,7 +7,7 @@ "vendor": "Axis Communications AB", "embeddedSdkVersion": "3.0", "runMode": "respawn", - "version": "1.2.6" + "version": "1.2.7" }, "configuration": { "settingPage": "config.html", diff --git a/modbusacap.c b/modbusacap.c index 16b0eca..82a2dec 100644 --- a/modbusacap.c +++ b/modbusacap.c @@ -18,7 +18,6 @@ #include #include #include -#include #include "modbus_client.h" #include "modbus_server.h" @@ -285,7 +284,7 @@ static void scenario_callback(const gchar *name, const gchar *value, void *data) return; } - guint scenario = atoi(value); + const guint scenario = atoi(value); assert(0 < scenario); LOG_I("%s/%s: Got new %s (%u)", __FILE__, __FUNCTION__, name, scenario); @@ -385,7 +384,7 @@ static gboolean signal_handler_init(void) int main(int argc, char **argv) { GError *error = NULL; - char *app_name = basename(argv[0]); + const char *app_name = basename(argv[0]); open_syslog(app_name); int ret = EXIT_SUCCESS;