1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-10 18:10:47 +02:00

Fixed version bound check in RT message parsing

This commit is contained in:
Thomas Timm Andersen
2015-09-17 09:19:12 +02:00
parent bcac6b9a31
commit 8e4cb945d6

View File

@@ -304,7 +304,7 @@ void RobotStateRT::unpack(uint8_t * buf) {
offset += sizeof(len); offset += sizeof(len);
len = ntohl(len); len = ntohl(len);
if (version_ < 3.1 & len != 1044) { if (version_ > 3. & version_ < 3.1 & len != 1044) {
//In 3.0, every 4th? package is malformed...? //In 3.0, every 4th? package is malformed...?
//printf("Len: %i\n", len); //printf("Len: %i\n", len);
val_lock_.unlock(); val_lock_.unlock();