Skip to content

Commit 71d41bc

Browse files
committed
try to fix
1 parent 9e66fca commit 71d41bc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/motor/bts7960/bts7960_linux.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ func (d *bts7960) Forward(ctx context.Context) error {
2828
"mode": "out",
2929
}).Infoln("Open the pin")
3030
forwardPWM := rpio.Pin(d.forwardPWM)
31-
forwardPWM.Ouput()
31+
forwardPWM.Output()
3232

3333
// Open the forwardEnable and set OUT mode
3434
logrus.WithFields(logrus.Fields{
3535
"pin_number": d.forwardEnable,
3636
"mode": "out",
3737
}).Infoln("Open the pin")
3838
forwardEnable := rpio.Pin(d.forwardEnable)
39-
forwardEnable.Ouput()
39+
forwardEnable.Output()
4040

4141
// Set the motor rotation
4242
logrus.Infoln("Set the motor rotation")
@@ -76,15 +76,15 @@ func (d *bts7960) Backward(ctx context.Context) error {
7676
"mode": "out",
7777
}).Infoln("Open the pin")
7878
reversePWM, err := rpio.Pin(d.reversePWM)
79-
reversePWM.Ouput()
79+
reversePWM.Output()
8080

8181
// Open the reverseEnable and set OUT mode
8282
logrus.WithFields(logrus.Fields{
8383
"pin_number": d.reverseEnable,
8484
"mode": "out",
8585
}).Infoln("Open the pin")
8686
reverseEnable := rpio.Pin(d.reverseEnable)
87-
reverseEnable.Ouput()
87+
reverseEnable.Output()
8888

8989
// Set the motor rotation
9090
logrus.Infoln("Set the motor rotation")
@@ -124,15 +124,15 @@ func (d *bts7960) Stop() error {
124124
"mode": "out",
125125
}).Infoln("Open the pin")
126126
forwardEnable := rpio.Pin(d.motor1B)
127-
forwardEnable.Ouput()
127+
forwardEnable.Output()
128128

129129
// Open the backwardEnable and set OUT mode
130130
logrus.WithFields(logrus.Fields{
131131
"pin_number": d.backwardEnable,
132132
"mode": "out",
133133
}).Infoln("Open the pin")
134134
backwardEnable := rpio.Pin(d.backwardEnable)
135-
backwardEnable.Ouput()
135+
backwardEnable.Output()
136136

137137
// Set to LOW
138138
logrus.Infoln("Stop the motor")

0 commit comments

Comments
 (0)