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;