Skip to content

Commit

Permalink
Update CanMsg.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
BOBILLEChristophe committed Dec 11, 2023
1 parent 16b55c9 commit 8feeaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CanMsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void CanMsg::loop()
DCC::setFn(loco, frameIn.data[2], frameIn.data[3]); // frame.data[2] = fonction, frame.data[3] : 'on' ou 'off'
break;
case 0xFE:
TrackManager::setMainPower(frameIn.data[0] ? POWERMODE::ON : POWERMODE::OFF);
TrackManager::setMainPower(frameIn.data[0] ? POWERMODE::OFF : POWERMODE::ON);
break;
case 0xFF:
DCC::setThrottle(0, 1, 1); // emergency stop
Expand Down

0 comments on commit 8feeaf2

Please sign in to comment.