Fixed a mistake in the type detection code.

This commit is contained in:
Jef Driesen 2011-05-05 20:53:08 +02:00
parent a217a0fb80
commit 6467f6353d

View File

@ -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;