From e9605742cc2fe55fab9caea26e5748ccb794e4e7 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Sun, 4 Oct 2026 12:27:18 +0200 Subject: [PATCH] json issues fixed --- server/block.cc | 2 +- server/network.cc | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/server/block.cc b/server/block.cc index 403659e..a1bc4f4 100644 --- a/server/block.cc +++ b/server/block.cc @@ -155,7 +155,7 @@ Block Blocks::GetBlockFromJSON(JSONParse *j) { s = ""; if (j->GetValue("sensor_shortstop_1", &s)) strncpy (bl.s_shortstop[1], s.c_str(), REFERENCENAME_LEN); s = ""; if (j->GetValue("secondblock", &s)) strncpy (bl.secondblock, s.c_str(), REFERENCENAME_LEN); - printf ("%s:%d block: %s flags: %d\n", __FILE__, __LINE__, bl.name, bl.flags); + // printf ("%s:%d block: %s flags: %d\n", __FILE__, __LINE__, bl.name, bl.flags); return bl; }; diff --git a/server/network.cc b/server/network.cc index 00fb216..af7fb5b 100644 --- a/server/network.cc +++ b/server/network.cc @@ -97,7 +97,11 @@ int Network::Start() { webserver.SetupDocumentRoot("webinterface"); webserver.SetupPorts(1080, 1081); webserver.Start(); - + printf ("*************************************\n"); + printf ("* Modelbahn Webserver started *\n"); + printf ("* Port: 1080 (HTTP) *\n"); + printf ("* Port: 1081 (HTTPS) *\n"); + printf ("*************************************\n"); thread_running = 1; pthread_attr_init (&attr); pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_JOINABLE);