Skip to content

Commit 107b1c2

Browse files
aykevldeadprogram
authored andcommitted
machine: do not expose RESET_MAGIC_VALUE
This is a constant for internal use only, but was (unintentionally?) exported. In addition, it doesn't follow the Go naming convention. This change simply renames the constant so that it is unexported.
1 parent 2409bbe commit 107b1c2

24 files changed

+24
-24
lines changed

src/machine/board_arduino_mkr1000.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package machine
88

99
// used to reset into bootloader
10-
const RESET_MAGIC_VALUE = 0x07738135
10+
const resetMagicValue = 0x07738135
1111

1212
// GPIO Pins
1313
const (

src/machine/board_arduino_mkrwifi1010.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package machine
88

99
// used to reset into bootloader
10-
const RESET_MAGIC_VALUE = 0x07738135
10+
const resetMagicValue = 0x07738135
1111

1212
// GPIO Pins
1313
const (

src/machine/board_arduino_nano33.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
package machine
88

99
// used to reset into bootloader
10-
const RESET_MAGIC_VALUE = 0x07738135
10+
const resetMagicValue = 0x07738135
1111

1212
// GPIO Pins
1313
const (

src/machine/board_arduino_zero.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package machine
55

66
// used to reset into bootloader
7-
const RESET_MAGIC_VALUE = 0x07738135
7+
const resetMagicValue = 0x07738135
88

99
// GPIO Pins - Digital Low
1010
const (

src/machine/board_atsame54-xpro.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// Definition for compatibility, but not used
11-
const RESET_MAGIC_VALUE = 0x00000000
11+
const resetMagicValue = 0x00000000
1212

1313
const (
1414
LED = PC18

src/machine/board_circuitplay_express.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package machine
55

66
// used to reset into bootloader
7-
const RESET_MAGIC_VALUE = 0xf01669ef
7+
const resetMagicValue = 0xf01669ef
88

99
// GPIO Pins
1010
const (

src/machine/board_feather-m0.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package machine
55

66
// used to reset into bootloader
7-
const RESET_MAGIC_VALUE = 0xf01669ef
7+
const resetMagicValue = 0xf01669ef
88

99
// GPIO Pins
1010
const (

src/machine/board_feather-m4-can.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// used to reset into bootloader
11-
const RESET_MAGIC_VALUE = 0xf01669ef
11+
const resetMagicValue = 0xf01669ef
1212

1313
// GPIO Pins
1414
const (

src/machine/board_feather-m4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
package machine
55

66
// used to reset into bootloader
7-
const RESET_MAGIC_VALUE = 0xf01669ef
7+
const resetMagicValue = 0xf01669ef
88

99
// GPIO Pins
1010
const (

src/machine/board_grandcentral-m4.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ const (
245245

246246
// Other peripheral constants
247247
const (
248-
RESET_MAGIC_VALUE = 0xF01669EF // Used to reset into bootloader
248+
resetMagicValue = 0xF01669EF // Used to reset into bootloader
249249
)
250250

251251
// USB CDC pins

0 commit comments

Comments
 (0)