From c073cbf71abe4c6ce92ac621fbe071b08895486b Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 27 Jul 2021 17:53:09 +0900 Subject: [PATCH] Fixed FTBFS with clang. Signed-off-by: Michele Calgaro --- kaffeine/src/input/dvb/dvbstream.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kaffeine/src/input/dvb/dvbstream.cpp b/kaffeine/src/input/dvb/dvbstream.cpp index d4149a8..7bd961d 100644 --- a/kaffeine/src/input/dvb/dvbstream.cpp +++ b/kaffeine/src/input/dvb/dvbstream.cpp @@ -797,14 +797,14 @@ void DvbStream::rotorCommand( int cmd, int n1, int n2, int n3 ) { { 0xe0, 0x31, 0x66, 0x00, 0x00, 0x00 }, 3 }, //2 Set East Limit { { 0xe0, 0x31, 0x67, 0x00, 0x00, 0x00 }, 3 }, //3 Set West Limit { { 0xe0, 0x31, 0x68, 0x00, 0x00, 0x00 }, 4 }, //4 Drive Motor East continously - { { 0xe0, 0x31, 0x68,256-n1,0x00, 0x00 }, 4 }, //5 Drive Motor East nn steps - { { 0xe0, 0x31, 0x69,256-n1,0x00, 0x00 }, 4 }, //6 Drive Motor West nn steps + { { 0xe0, 0x31, 0x68, (__u8)(256-n1), 0x00, 0x00 }, 4 }, //5 Drive Motor East nn steps + { { 0xe0, 0x31, 0x69, (__u8)(256-n1), 0x00, 0x00 }, 4 }, //6 Drive Motor West nn steps { { 0xe0, 0x31, 0x69, 0x00, 0x00, 0x00 }, 4 }, //7 Drive Motor West continously - { { 0xe0, 0x31, 0x6a, n1, 0x00, 0x00 }, 4 }, //8 Store nn - { { 0xe0, 0x31, 0x6b, n1, 0x00, 0x00 }, 4 }, //9 Goto nn - { { 0xe0, 0x31, 0x6f, n1, n2, n3 }, 4}, //10 Recalculate Position + { { 0xe0, 0x31, 0x6a, (__u8)(n1), 0x00, 0x00 }, 4 }, //8 Store nn + { { 0xe0, 0x31, 0x6b, (__u8)(n1), 0x00, 0x00 }, 4 }, //9 Goto nn + { { 0xe0, 0x31, 0x6f, (__u8)(n1), (__u8)(n2), (__u8)(n3) }, 4}, //10 Recalculate Position { { 0xe0, 0x31, 0x6a, 0x00, 0x00, 0x00 }, 4 }, //11 Enable Limits - { { 0xe0, 0x31, 0x6e, n1, n2, 0x00 }, 5 }, //12 Gotoxx + { { 0xe0, 0x31, 0x6e, (__u8)(n1), (__u8)(n2), 0x00 }, 5 }, //12 Gotoxx { { 0xe0, 0x10, 0x38, 0xF4, 0x00, 0x00 }, 4 } //13 User };