mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-26 17:46:14 +01:00
fix type warning
This commit is contained in:
parent
f66f5785f5
commit
0268304d41
|
@ -93,12 +93,12 @@ class MotorDriver {
|
||||||
inline byte getFaultPin() {
|
inline byte getFaultPin() {
|
||||||
return faultPin;
|
return faultPin;
|
||||||
}
|
}
|
||||||
inline void setResetCounterPointer(byte *bp) { // load resetPacketCounter pointer
|
inline void setResetCounterPointer(volatile byte *bp) { // load resetPacketCounter pointer
|
||||||
resetsCounterP = bp;
|
resetsCounterP = bp;
|
||||||
}
|
}
|
||||||
void checkPowerOverload(bool useProgLimit, byte trackno);
|
void checkPowerOverload(bool useProgLimit, byte trackno);
|
||||||
private:
|
private:
|
||||||
byte *resetsCounterP = NULL; // points to the resetPacketCounter if this is a prog track
|
volatile byte *resetsCounterP = NULL; // points to the resetPacketCounter if this is a prog track
|
||||||
void getFastPin(const FSH* type,int pin, bool input, FASTPIN & result);
|
void getFastPin(const FSH* type,int pin, bool input, FASTPIN & result);
|
||||||
void getFastPin(const FSH* type,int pin, FASTPIN & result) {
|
void getFastPin(const FSH* type,int pin, FASTPIN & result) {
|
||||||
getFastPin(type, pin, 0, result);
|
getFastPin(type, pin, 0, result);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user