Skip to content

Commit baee7f8

Browse files
committed
chore: removed compiler flags
1 parent 87138e9 commit baee7f8

File tree

7 files changed

+8
-16
lines changed

7 files changed

+8
-16
lines changed

enabler/interfaces.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build tinygo && (rp2040 || rp2350)
2-
31
package enabler
42

53
import (

enabler/types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"machine"
77

88
tinygopullup "github.com/ralvarezdev/tinygo-pullup"
9-
tinygotypes "github.com/ralvarezdev/tinygo-types"
9+
tinygoerrors "github.com/ralvarezdev/tinygo-errors"
1010
)
1111

1212
type (
@@ -27,14 +27,14 @@ type (
2727
// An instance of DefaultHandler, or an error if the pull-up handler is nil
2828
func NewDefaultHandler(
2929
pullUpHandler tinygopullup.Handler,
30-
) (*DefaultHandler, tinygotypes.ErrorCode) {
30+
) (*DefaultHandler, tinygoerrors.ErrorCode) {
3131
if pullUpHandler == nil {
3232
return nil, tinygopullup.ErrorCodePullUpResistorNilHandler
3333
}
3434

3535
return &DefaultHandler{
3636
pullUpHandler,
37-
}, tinygotypes.ErrorCodeNil
37+
}, tinygoerrors.ErrorCodeNil
3838
}
3939

4040
// NewDefaultHandlerFromPin creates a new default debug handler with a pull-up handler created from the given pin.

errors.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
//go:build tinygo && (rp2040 || rp2350)
2-
31
package tinygo_pullup
42

53
import (
6-
tinygotypes "github.com/ralvarezdev/tinygo-types"
4+
tinygoerrors "github.com/ralvarezdev/tinygo-errors"
75
)
86

97
const (
@@ -12,5 +10,5 @@ const (
1210
)
1311

1412
const (
15-
ErrorCodePullUpResistorNilHandler = tinygotypes.ErrorCode(iota + ErrorCodePullUpResistorStartNumber)
13+
ErrorCodePullUpResistorNilHandler = tinygoerrors.ErrorCode(iota + ErrorCodePullUpResistorStartNumber)
1614
)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/ralvarezdev/tinygo-pullup
22

33
go 1.25.0
44

5-
require github.com/ralvarezdev/tinygo-types v0.0.3
5+
require github.com/ralvarezdev/tinygo-errors v0.0.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/ralvarezdev/tinygo-types v0.0.3 h1:h8ogOD2lOVxR+w5i6o+v/8qTROFA2KBjVXBM7NT3SMc=
2-
github.com/ralvarezdev/tinygo-types v0.0.3/go.mod h1:2u3ApwAtIqGZ6wDsmUYt44bIk1DEn06INNjtfWndCr4=
1+
github.com/ralvarezdev/tinygo-errors v0.0.4 h1:nuqApi7tEzPSSf2/3Uqxxizwftvoxczaec9BA95Hcj4=
2+
github.com/ralvarezdev/tinygo-errors v0.0.4/go.mod h1:PlkyrG60saZetwFX1mPhve+9l2pneVH7c8q5w4sxe8M=

interfaces.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build tinygo && (rp2040 || rp2350)
2-
31
package tinygo_pullup
42

53
type (

types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build tinygo && (rp2040 || rp2350)
2-
31
package tinygo_pullup
42

53
import (

0 commit comments

Comments
 (0)