included jitter correction on client
This commit is contained in:
@@ -750,6 +750,7 @@ void StreamHub::OnWSCommand(const char *json, uint32 /*len*/, uint32 slotIdx) {
|
||||
else if (strcmp(type, "rearm") == 0) { HandleRearm(); }
|
||||
else if (strcmp(type, "trigStop") == 0) { HandleTrigStop(json); }
|
||||
else if (strcmp(type, "setTrigger") == 0) { HandleSetTrigger(json); }
|
||||
else if (strcmp(type, "forceTrigger") == 0) { HandleForceTrigger(); }
|
||||
else if (strcmp(type, "zoom") == 0) { HandleZoom(json, slotIdx); }
|
||||
else if (strcmp(type, "historyZoom") == 0) { HandleHistoryZoom(json, slotIdx); }
|
||||
else if (strcmp(type, "historyInfo") == 0) { HandleHistoryInfo(slotIdx); }
|
||||
@@ -1017,6 +1018,12 @@ void StreamHub::HandleRearm() {
|
||||
HandleArm();
|
||||
}
|
||||
|
||||
void StreamHub::HandleForceTrigger() {
|
||||
rearmPending_ = false;
|
||||
(void) trigger_.Force();
|
||||
BroadcastTriggerState();
|
||||
}
|
||||
|
||||
void StreamHub::HandleTrigStop(const char *json) {
|
||||
/* {"type":"trigStop","stopped":bool} — absent "stopped" toggles. */
|
||||
bool stopped = !trigger_.GetStopped();
|
||||
|
||||
Reference in New Issue
Block a user