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:
Alex Shepherd
2018-07-08 00:54:21 +12:00
parent 1717a2efb0
commit 7a3845cbdf
3 changed files with 4 additions and 6 deletions

View File

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