Stasik0 %!s(int64=10) %!d(string=hai) anos
pai
achega
9789b51d47
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/ua_services_attribute.c

+ 1 - 1
src/server/ua_services_attribute.c

@@ -297,7 +297,7 @@ void Service_Read(UA_Server *server, UA_Session *session, const UA_ReadRequest *
         return;
         return;
     }
     }
 
 
-    if(request->timestampsToReturn > 3 || request->timestampsToReturn < 0){
+    if(request->timestampsToReturn > 3){
     	response->responseHeader.serviceResult = UA_STATUSCODE_BADTIMESTAMPSTORETURNINVALID;
     	response->responseHeader.serviceResult = UA_STATUSCODE_BADTIMESTAMPSTORETURNINVALID;
     	return;
     	return;
     }
     }