From 284ea8521a1f2737f0c54b75494fcc6bafd27528 Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Wed, 29 Jun 2022 13:52:15 -0500 Subject: [PATCH] 1297 civet enum (#1298) * include freeze time tics in calculation for websocket data intervals * add enum type to web server types closes #1297 --- trick_source/web/CivetServer/src/VariableServerVariable.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trick_source/web/CivetServer/src/VariableServerVariable.cpp b/trick_source/web/CivetServer/src/VariableServerVariable.cpp index ed8f4818..85b7badc 100644 --- a/trick_source/web/CivetServer/src/VariableServerVariable.cpp +++ b/trick_source/web/CivetServer/src/VariableServerVariable.cpp @@ -119,6 +119,9 @@ void VariableServerVariable::writeValue( std::ostream& outs ) { case TRICK_UNSIGNED_SHORT: outs << std::dec << *(unsigned short*)stageBuffer; break; + case TRICK_ENUMERATED: + outs << std::dec << *(int*)stageBuffer; + break; case TRICK_INTEGER: outs << std::dec << *(int*)stageBuffer; break;