Skip to content

Commit 10036f8

Browse files
Fix version error in decodeCommand method
1 parent 49a079f commit 10036f8

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed
-184 KB
Binary file not shown.
183 KB
Binary file not shown.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
| 1.0.0 | 06.02.2024 | - First version of PanTilt interface library. |
5858
| 1.0.1 | 23.04.2024 | - Documentation updated for website. |
5959
| 1.0.2 | 24.05.2024 | - Documentation updated. |
60+
| 1.0.3 | 10.06.2024 | - Fix version error in decodeCommand method. |
6061

6162

6263

src/PanTilt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ int cr::pantilt::PanTilt::decodeCommand(uint8_t* data, int size, PanTiltParam& p
357357
}
358358

359359
// Check version.
360-
if (data[1] != PAN_TILT_MAJOR_VERSION || data[2] != PAN_TILT_MAJOR_VERSION)
360+
if (data[1] != PAN_TILT_MAJOR_VERSION || data[2] != PAN_TILT_MINOR_VERSION)
361361
{
362362
return -1;
363363
}

0 commit comments

Comments
 (0)