Skip to content

Commit aaba2ff

Browse files
committed
feat: added another tinygo-servo ErrorCode
1 parent dfc2400 commit aaba2ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

constants.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ const (
163163
ErrorCodeServoAngleAboveMaxPulseWidth
164164
ErrorCodeServoFailedToSetServoAngle
165165
ErrorCodeServoNilHandler
166+
ErrorCodeServoUnknownDirection
166167
)
167168

168169
var (
@@ -306,5 +307,6 @@ var (
306307
ErrorCodeServoAngleAboveMaxPulseWidth: "servo angle above max pulse width",
307308
ErrorCodeServoFailedToSetServoAngle: "servo failed to set angle",
308309
ErrorCodeServoNilHandler: "servo handler cannot be nil",
310+
ErrorCodeServoUnknownDirection: "servo unknown direction",
309311
}
310312
)

0 commit comments

Comments
 (0)