File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ enum { BLE_CONN_CFG_HIGH_BANDWIDTH = 1 };
142
142
//--------------------------------------------------------------------+
143
143
//
144
144
//--------------------------------------------------------------------+
145
- void adafruit_factory_reset (void );
146
145
static uint32_t softdev_init (bool init_softdevice );
147
146
148
147
uint32_t * dbl_reset_mem = ((uint32_t * ) DFU_DBL_RESET_MEM );
@@ -272,14 +271,6 @@ int main(void)
272
271
}
273
272
}
274
273
275
- #if 0
276
- // Adafruit Factory reset
277
- if ( !button_pressed (BUTTON_DFU ) && button_pressed (BUTTON_FRESET ) )
278
- {
279
- adafruit_factory_reset ();
280
- }
281
- #endif
282
-
283
274
// Reset Board
284
275
board_teardown ();
285
276
@@ -306,27 +297,6 @@ int main(void)
306
297
NVIC_SystemReset ();
307
298
}
308
299
309
-
310
- #if 0
311
- // Perform factory reset to erase Application + Data
312
- void adafruit_factory_reset (void )
313
- {
314
- led_state (STATE_FACTORY_RESET_STARTED );
315
-
316
- // clear all App Data if any
317
- if ( DFU_APP_DATA_RESERVED )
318
- {
319
- nrfx_nvmc_page_erase (APPDATA_ADDR_START );
320
- }
321
-
322
- // Only need to erase the 1st page of Application code to make it invalid
323
- nrfx_nvmc_page_erase (DFU_BANK_0_REGION_START );
324
-
325
- // back to normal
326
- led_state (STATE_FACTORY_RESET_FINISHED );
327
- }
328
- #endif
329
-
330
300
/**
331
301
* Initializes the SotdDevice by following SD specs section
332
302
* "Master Boot Record and SoftDevice initializaton procedure"
You can’t perform that action at this time.
0 commit comments