mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 16:16:13 +01:00
make compile on Uno
This commit is contained in:
parent
6ff5e7c7a8
commit
11d959c8d0
|
@ -1 +1 @@
|
||||||
#define GITHUB_SHA "TM-PORTX-20220606"
|
#define GITHUB_SHA "TM-PORTX-20220606-1"
|
||||||
|
|
|
@ -183,23 +183,23 @@ void MotorDriver::setDCSignal(byte speedcode) {
|
||||||
if (HAVE_PORTA(fastSignalPin.shadowinout == &PORTA)) {
|
if (HAVE_PORTA(fastSignalPin.shadowinout == &PORTA)) {
|
||||||
DIAG(F("setDCSignal: HAVEPORTA"));
|
DIAG(F("setDCSignal: HAVEPORTA"));
|
||||||
noInterrupts();
|
noInterrupts();
|
||||||
fakePORTA=PORTA;
|
HAVE_PORTA(fakePORTA=PORTA);
|
||||||
setSignal(tDir);
|
setSignal(tDir);
|
||||||
PORTA=fakePORTA;
|
HAVE_PORTA(PORTA=fakePORTA);
|
||||||
interrupts();
|
interrupts();
|
||||||
} else if (HAVE_PORTB(fastSignalPin.shadowinout == &PORTB)) {
|
} else if (HAVE_PORTB(fastSignalPin.shadowinout == &PORTB)) {
|
||||||
DIAG(F("setDCSignal: HAVEPORTB"));
|
DIAG(F("setDCSignal: HAVEPORTB"));
|
||||||
noInterrupts();
|
noInterrupts();
|
||||||
fakePORTB=PORTB;
|
HAVE_PORTB(fakePORTB=PORTB);
|
||||||
setSignal(tDir);
|
setSignal(tDir);
|
||||||
PORTB=fakePORTB;
|
HAVE_PORTB(PORTB=fakePORTB);
|
||||||
interrupts();
|
interrupts();
|
||||||
} else if (HAVE_PORTC(fastSignalPin.shadowinout == &PORTC)) {
|
} else if (HAVE_PORTC(fastSignalPin.shadowinout == &PORTC)) {
|
||||||
DIAG(F("setDCSignal: HAVEPORTC"));
|
DIAG(F("setDCSignal: HAVEPORTC"));
|
||||||
noInterrupts();
|
noInterrupts();
|
||||||
fakePORTC=PORTC;
|
HAVE_PORTC(fakePORTC=PORTC);
|
||||||
setSignal(tDir);
|
setSignal(tDir);
|
||||||
PORTC=fakePORTC;
|
HAVE_PORTC(PORTC=fakePORTC);
|
||||||
interrupts();
|
interrupts();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user