From 9fe4d4ea9c054e539ab679ed2e9c076c35beb69d Mon Sep 17 00:00:00 2001 From: etobi Date: Tue, 3 Sep 2013 09:48:45 +0200 Subject: Imported Upstream version 1.1.1+rev1355 --- lib/libdvbsec/dvbsec_api.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'lib/libdvbsec') diff --git a/lib/libdvbsec/dvbsec_api.c b/lib/libdvbsec/dvbsec_api.c index 5f2ae22..62d225e 100644 --- a/lib/libdvbsec/dvbsec_api.c +++ b/lib/libdvbsec/dvbsec_api.c @@ -537,19 +537,12 @@ int dvbsec_diseqc_goto_rotator_bearing(struct dvbfe_handle *fe, } // generate the command - if (integer < -256) { - return -EINVAL; - } else if (integer < 0) { - integer = -integer; - data[3] = 0xf0; - } else if (integer < 256) { - data[3] = 0x00; - } else if (integer < 512) { - integer -= 256; - data[3] = 0x10; - } else { - return -EINVAL; + if (integer < 0.0) { + data[3] = 0xD0; // West is a negative angle value + } else if (integer >= 0.0) { + data[3] = 0xE0; // East is a positive angle value } + integer = abs(integer); data[3] |= ((integer / 16) & 0x0f); integer = integer % 16; data[4] |= ((integer & 0x0f) << 4) | fraction; -- cgit v1.2.3 td> aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/se-Hogsby_Virstad (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2007-05-16overall whitespace & encoding fixesChristoph Pfister1-1/+1
patch from Matthias Schwarzott: - use utf8 everywhere for files & file names additionally by me: - remove empty lines at the beginning of the files - remove any control character (< 0x20) except \n and \t - remove trailing whitespace - exactly one newline at the end of the files - remove junk from dvb-t/au-Melbourne-Upwey
2007-05-11update scan file for de-LeipzigChristoph Pfister1-5/+6
http://linuxtv.org/pipermail/linux-dvb/2007-May/017972.html
2007-05-06update scan file for es-MalagaChristoph Pfister1-16/+8
http://linuxtv.org/pipermail/linux-dvb/2007-May/017826.html
2007-05-06update scan file for uk-EmleyMoorChristoph Pfister1-1/+6
http://linuxtv.org/pipermail/linux-dvb/2007-May/017824.html
2007-05-04update scan file for Eurobird1-28.5EChristoph Pfister1-1/+3
http://linuxtv.org/pipermail/linux-dvb/2007-May/017788.html