From df6193040f57941b8f6083f2f7e82cf3aee33f05 Mon Sep 17 00:00:00 2001 From: Kizarm Date: Wed, 30 Oct 2024 21:41:21 +0100 Subject: [PATCH] sync server setting --- V203/usb/scope/server/wsclient.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/V203/usb/scope/server/wsclient.cpp b/V203/usb/scope/server/wsclient.cpp index b510277..16844bc 100644 --- a/V203/usb/scope/server/wsclient.cpp +++ b/V203/usb/scope/server/wsclient.cpp @@ -153,6 +153,8 @@ void WsClient::parse_reply(const char * data, const int len) { as.common [n] = from_hex (data + k); k += 2; } + // ulož zpět, synchronizace serveru + memcpy (&trigerSettings, &as.part.trg, sizeof(TrigerSettings)); json msg; msg["channel"] = as.part.trg.channel; msg["mode"] = as.part.trg.mode;