From 6467f6353d952d59851248d35cd2eff0bd4fed00 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Thu, 5 May 2011 20:53:08 +0200 Subject: [PATCH] Fixed a mistake in the type detection code. --- src/uwatec_smart_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uwatec_smart_parser.c b/src/uwatec_smart_parser.c index 49a122b..eacffc5 100644 --- a/src/uwatec_smart_parser.c +++ b/src/uwatec_smart_parser.c @@ -296,7 +296,7 @@ uwatec_galileo_identify (unsigned char value) // Bits: 1XXX dddd if ((value & 0xF0) != 0xF0) - return (value & 0x70) >> 8; + return (value & 0x70) >> 4; // Bits: 1111 XXXX return (value & 0x0F) + 7;