11package go_tinygo_errors
22
33import (
4- tinygotypes "github.com/ralvarezdev/tinygo-types "
4+ tinygoerrors "github.com/ralvarezdev/tinygo-errors "
55)
66
77const (
@@ -22,11 +22,11 @@ const (
2222)
2323
2424const (
25- ErrorCodeBuffersInvalidBufferSize tinygotypes .ErrorCode = ErrorCodeBuffersStartNumber + iota
25+ ErrorCodeBuffersInvalidBufferSize tinygoerrors .ErrorCode = ErrorCodeBuffersStartNumber + iota
2626)
2727
2828const (
29- ErrorCodeBNO08XPacketBufferIndexOutOfRange tinygotypes .ErrorCode = tinygotypes .ErrorCode (iota + ErrorCodeBNO08XStartNumber )
29+ ErrorCodeBNO08XPacketBufferIndexOutOfRange tinygoerrors .ErrorCode = tinygoerrors .ErrorCode (iota + ErrorCodeBNO08XStartNumber )
3030 ErrorCodeBNO08XInvalidChannelNumber
3131 ErrorCodeBNO08XNilPacketReader
3232 ErrorCodeBNO08XNilPacketWriter
@@ -138,11 +138,11 @@ const (
138138)
139139
140140const (
141- ErrorCodePullUpResistorNilHandler = tinygotypes .ErrorCode (iota + ErrorCodePullUpResistorStartNumber )
141+ ErrorCodePullUpResistorNilHandler = tinygoerrors .ErrorCode (iota + ErrorCodePullUpResistorStartNumber )
142142)
143143
144144const (
145- ErrorCodeESCMotorFailedToConfigurePWM tinygotypes .ErrorCode = tinygotypes .ErrorCode (iota + ErrorCodeESCMotorStartNumber )
145+ ErrorCodeESCMotorFailedToConfigurePWM tinygoerrors .ErrorCode = tinygoerrors .ErrorCode (iota + ErrorCodeESCMotorStartNumber )
146146 ErrorCodeESCMotorFailedToInitializeServo
147147 ErrorCodeESCMotorSpeedOutOfRange
148148 ErrorCodeESCMotorSpeedBelowMinPulseWidth
@@ -151,7 +151,7 @@ const (
151151)
152152
153153const (
154- ErrorCodeServoFailedToConfigurePWM tinygotypes .ErrorCode = tinygotypes .ErrorCode (iota + ErrorCodeServoStartNumber )
154+ ErrorCodeServoFailedToConfigurePWM tinygoerrors .ErrorCode = tinygoerrors .ErrorCode (iota + ErrorCodeServoStartNumber )
155155 ErrorCodeServoFailedToInitializeServo
156156 ErrorCodeServoAngleOutOfRange
157157 ErrorCodeServoAngleBelowMinPulseWidth
@@ -162,7 +162,7 @@ const (
162162
163163var (
164164 // ErrorCodeMessages maps error codes to their corresponding error messages.
165- ErrorCodeMessages = map [tinygotypes .ErrorCode ]string {
165+ ErrorCodeMessages = map [tinygoerrors .ErrorCode ]string {
166166 // Buffers errors
167167 ErrorCodeBuffersInvalidBufferSize : "invalid buffer size" ,
168168
0 commit comments