mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
Fixed bug for RT message garbage in 3.0
This commit is contained in:
@@ -304,8 +304,9 @@ void RobotStateRT::unpack(uint8_t * buf) {
|
||||
|
||||
offset += sizeof(len);
|
||||
len = ntohl(len);
|
||||
if (version_ < 3.1 & len > 1044) {
|
||||
//In 3.0, every 3rd? package is malformed...?
|
||||
if (version_ < 3.1 & len != 1044) {
|
||||
//In 3.0, every 4th? package is malformed...?
|
||||
//printf("Len: %i\n", len);
|
||||
val_lock_.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user