reversed a change to the state parameter of the notifyDccAccState() call-back that may have broken compatibility with existing code

more improvements to the NmraDccAccessoryDecoder_Pulsed_8 example code
This commit is contained in:
Alex Shepherd
2016-03-20 19:58:03 +13:00
parent 4e4007ebf7
commit c4e693550c
2 changed files with 83 additions and 63 deletions

View File

@@ -690,7 +690,7 @@ void execDccProcessor( DCC_MSG * pDccMsg )
uint8_t outputPower = (pDccMsg->Data[1] & 0b00001000) >> 3;
if( notifyDccAccState )
notifyDccAccState( Address, BoardAddress, OutputAddress, outputPower ) ;
notifyDccAccState( Address, BoardAddress, OutputAddress, pDccMsg->Data[1] & 0b00001000 ) ;
if( notifyDccAccTurnoutBoard )
notifyDccAccTurnoutBoard( BoardAddress, OutputIndex, direction, outputPower );