Restructuring a bit

This commit is contained in:
Bill Cox
2014-12-10 13:03:19 -05:00
parent 2d037b7635
commit 1006254e2b
15 changed files with 140 additions and 190 deletions

View File

@@ -108,7 +108,7 @@ static uint32_t extractBytes(uint8_t *bytes, uint8_t *inBuf, bool raw) {
uint8_t evenBit = (val >> COMP2) & 1;
uint8_t oddBit = (val >> COMP1) & 1;
bool even = j & 1; // Use the even bit if j is odd
uint8_t bit = even? oddBit : evenBit;
uint8_t bit = even? evenBit : oddBit;
byte = (byte << 1) | bit;
// This is a good place to feed the bit from the INM to the health checker.
uint8_t addr = extractAddress(val);