aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-14 00:43:59 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-14 00:43:59 +0000
commit8dc38b0158d188849a417d9dc573c66bc9eed1f9 (patch)
tree4c0dd708edd2069325a49db061e4743262ea180d /src
parente798ee1ac24fd5f2f272360be28faef4cf39f079 (diff)
downloadverteco-1.4.tar.gz
modbuslog: Fix bitshiftingv1.4
Was not working correctly with Digirail 4C
Diffstat (limited to 'src')
-rw-r--r--src/modbuslog.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index 9ef6f49..b310cc7 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -311,10 +311,7 @@ int main(int argc, char *argv[]) {
}
// bitshifting magic
- switch (numregisters) {
- case 1:
- registervalue = byte[0];
- break;
+ switch (numregisters*2) {
case 2:
registervalue = ((byte[0]) << 8) + byte[1];
break;
@@ -323,7 +320,7 @@ int main(int argc, char *argv[]) {
+ ((byte[2]) << 8) + byte[3];
break;
default:
- registervalue = byte[0];
+ registervalue = ((byte[0]) << 8) + byte[1];
break;
}
re were some changes at Portugal channel frequencies, mostly in 2020. Update the DVB-T channel list accordingly, in order to reflect the current list of emitters. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update Brazilian ISDB-T tablesMauro Carvalho Chehab549-2923/+13860 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2022-03-07Update satellite channel lists from LyngsatMauro Carvalho Chehab54-1882/+2326 Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> 2021-12-14dtv-scan-tables: latest UK changesSimon Liddicott4-24/+24 only includes transmitters where there have been changes Link: https://lore.kernel.org/linux-media/20210128234622.75009-1-simon@liddicott.com Signed-off-by: Simon Liddicott <simon@liddicott.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30update Brazilian scan filesMauro Carvalho Chehab2476-12805/+69312 Data updated according with https://portalbsd.com.br/. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Remove legacy entriesMauro Carvalho Chehab129-24898/+0 There are several entries that used to be at Lyngsat. Several of them were merged with other entries. On others, there's no TV signal anymore. So, drop them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Add new satellites from LyngsatMauro Carvalho Chehab75-21/+29721 Those are are new satellite descriptions that didn't use to exist on Lyngsat. Add them. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Rename a few satellites with two names and update frequenciesMauro Carvalho Chehab2-283/+182 Those two satellites have two names. Use Just one of them. While here, update their frequencies from Lyngsat. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-04-30Update frequencies from LyngsatMauro Carvalho Chehab188-12304/+12666 Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>