mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-23 11:08:52 +01:00
more merge
This commit is contained in:
parent
ac3c8661a6
commit
e244de7835
@ -164,6 +164,7 @@ bool DCCWaveform::interrupt1() {
|
|||||||
if (ackPending) checkAck();
|
if (ackPending) checkAck();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,6 +65,10 @@ int Hardware::getCurrentRaw(bool isMainTrack) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsigned int Hardware::getCurrentMilliamps(bool isMainTrack, int raw) {
|
||||||
|
return (int)(raw * (isMainTrack ? MAIN_SENSE_FACTOR : PROG_SENSE_FACTOR));
|
||||||
|
}
|
||||||
|
|
||||||
void Hardware::setCallback(int duration, void (*isr)()) {
|
void Hardware::setCallback(int duration, void (*isr)()) {
|
||||||
Timer1.initialize(duration);
|
Timer1.initialize(duration);
|
||||||
// We don't want the timer to set pins because these often clash with motor shields etc.
|
// We don't want the timer to set pins because these often clash with motor shields etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user