Changed the architectures to now be * as we're no longer tied to AVR specific hardware, however I've listed the architectures its been tested on
Fixed a bug with CV bit-write
This commit is contained in:
@@ -1234,9 +1234,9 @@ void execDccProcessor( DCC_MSG * pDccMsg )
|
||||
uint8_t currentValue = readCV(cvAddress);
|
||||
uint8_t newValueMask = 1 << (cvValue & 0b00000111);
|
||||
if(cvValue & 0b00001000)
|
||||
writeCV(cvAddress, cvValue | newValueMask);
|
||||
writeCV(cvAddress, currentValue | newValueMask);
|
||||
else
|
||||
writeCV(cvAddress, cvValue & ~newValueMask);
|
||||
writeCV(cvAddress, currentValue & ~newValueMask);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user