Commits

Trammell Hudson committed d2d818a

off by one on word output; reads, but wrong values

Comments (0)

Files changed (1)

 	const uint8_t bits
 )
 {
-	switch(bits)
+	switch(bits - 1)
 	{
 	case 20: manchester_bit(x >> 20);
 	case 19: manchester_bit(x >> 19);
 	case  3: manchester_bit(x >>  3);
 	case  2: manchester_bit(x >>  2);
 	case  1: manchester_bit(x >>  1);
-	case  0: break;
+	case  0: manchester_bit(x >>  0);
 	}
 }