fixed a bug with the Extended DCC Packet Decoder Reset command was only handling the Hard Reset but not the Soft Reset

This commit is contained in:
Alex Shepherd
2019-11-23 14:25:28 +13:00
parent a8081526ba
commit 36418f4d66

View File

@@ -824,9 +824,8 @@ void processMultiFunctionMessage( uint16_t Addr, DCC_ADDR_TYPE AddrType, uint8_t
switch( Cmd & 0b00001110 )
{
case 0b00000000:
if( notifyDccReset && ( Cmd & 0b00000001 ) ) // Hard Reset
if( notifyDccReset)
notifyDccReset( 1 ) ;
if( notifyDccReset)
notifyDccReset( Cmd & 0b00000001 ) ;
break ;
case 0b00000010: // Factory Test