File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,6 @@ void _begin() {
81
81
82
82
signerInit ();
83
83
84
- #if defined(MY_GATEWAY_FEATURE)
85
- #if defined(MY_INCLUSION_BUTTON_FEATURE)
86
- inclusionInit ();
87
- #endif
88
-
89
- // initialize the transport driver
90
- if (!gatewayTransportInit ()) {
91
- setIndication (INDICATION_ERR_INIT_GWTRANSPORT);
92
- debug (PSTR (" Transport driver init fail\n " ));
93
- // Nothing more we can do
94
- _infiniteLoop ();
95
- }
96
-
97
- #endif
98
84
// Read latest received controller configuration from EEPROM
99
85
hwReadConfigBlock ((void *)&_cc, (void *)EEPROM_CONTROLLER_CONFIG_ADDRESS, sizeof (ControllerConfig));
100
86
// isMetric is bool, hence empty EEPROM (=0xFF) evaluates to true
@@ -144,7 +130,21 @@ void _begin() {
144
130
hwWriteConfig (EEPROM_NODE_LOCK_COUNTER, MY_NODE_LOCK_COUNTER_MAX);
145
131
}
146
132
#endif
133
+
134
+ #if defined(MY_GATEWAY_FEATURE)
135
+ #if defined(MY_INCLUSION_BUTTON_FEATURE)
136
+ inclusionInit ();
137
+ #endif
147
138
139
+ // initialize the transport driver
140
+ if (!gatewayTransportInit ()) {
141
+ setIndication (INDICATION_ERR_INIT_GWTRANSPORT);
142
+ debug (PSTR (" Transport driver init fail\n " ));
143
+ // Nothing more we can do
144
+ _infiniteLoop ();
145
+ }
146
+ #endif
147
+
148
148
// Call sketch setup
149
149
if (setup)
150
150
setup ();
You can’t perform that action at this time.
0 commit comments