mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-23 16:16:13 +01:00
fix indent
This commit is contained in:
parent
7a5b84ef18
commit
5ad396fbf4
|
@ -36,15 +36,15 @@
|
||||||
|
|
||||||
MotorDriver::MotorDriver(byte power_pin, byte signal_pin, byte signal_pin2, int8_t brake_pin,
|
MotorDriver::MotorDriver(byte power_pin, byte signal_pin, byte signal_pin2, int8_t brake_pin,
|
||||||
byte current_pin, float sense_factor, unsigned int trip_milliamps, byte fault_pin) {
|
byte current_pin, float sense_factor, unsigned int trip_milliamps, byte fault_pin) {
|
||||||
powerPin=power_pin;
|
powerPin=power_pin;
|
||||||
signalPin=signal_pin;
|
signalPin=signal_pin;
|
||||||
signalPin2=signal_pin2;
|
signalPin2=signal_pin2;
|
||||||
brakePin=brake_pin;
|
brakePin=brake_pin;
|
||||||
currentPin=current_pin;
|
currentPin=current_pin;
|
||||||
senseFactor=sense_factor;
|
senseFactor=sense_factor;
|
||||||
faultPin=fault_pin;
|
faultPin=fault_pin;
|
||||||
tripMilliamps=trip_milliamps;
|
tripMilliamps=trip_milliamps;
|
||||||
rawCurrentTripValue=(int)(trip_milliamps / sense_factor);
|
rawCurrentTripValue=(int)(trip_milliamps / sense_factor);
|
||||||
pinMode(powerPin, OUTPUT);
|
pinMode(powerPin, OUTPUT);
|
||||||
pinMode(brakePin < 0 ? -brakePin : brakePin, OUTPUT);
|
pinMode(brakePin < 0 ? -brakePin : brakePin, OUTPUT);
|
||||||
setBrake(false);
|
setBrake(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user