1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-22 18:48:52 +01:00

make compile on Uno

This commit is contained in:
Harald Barth 2022-06-06 23:45:28 +02:00
parent d37e303bdc
commit 0ab96d28c4
2 changed files with 7 additions and 7 deletions

View File

@ -1 +1 @@
#define GITHUB_SHA "TM-PORTX-20220606"
#define GITHUB_SHA "TM-PORTX-20220606-1"

View File

@ -181,21 +181,21 @@ void MotorDriver::setDCSignal(byte speedcode) {
if (fastSignalPin.shadowinout != NULL) {
if (HAVE_PORTA(fastSignalPin.shadowinout == &PORTA)) {
noInterrupts();
fakePORTA=PORTA;
HAVE_PORTA(fakePORTA=PORTA);
setSignal(tDir);
PORTA=fakePORTA;
HAVE_PORTA(PORTA=fakePORTA);
interrupts();
} else if (HAVE_PORTB(fastSignalPin.shadowinout == &PORTB)) {
noInterrupts();
fakePORTB=PORTB;
HAVE_PORTB(fakePORTB=PORTB);
setSignal(tDir);
PORTB=fakePORTB;
HAVE_PORTB(PORTB=fakePORTB);
interrupts();
} else if (HAVE_PORTC(fastSignalPin.shadowinout == &PORTC)) {
noInterrupts();
fakePORTC=PORTC;
HAVE_PORTC(fakePORTC=PORTC);
setSignal(tDir);
PORTC=fakePORTC;
HAVE_PORTC(PORTC=fakePORTC);
interrupts();
}
}