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:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user