Commit b5e318d8 authored by Dimitris Lampridis's avatar Dimitris Lampridis Committed by Grzegorz Daniluk

shell/init: remove I2C probing before each init command

It does not make sense when the init is stored in flash and the board has no
EEPROM. Otherwise, storage_init() calls mi2c_devprobe() if needed.
parent 5848df24
......@@ -16,11 +16,6 @@
static int cmd_init(const char *args[])
{
if (!mi2c_devprobe(WRPC_FMC_I2C, FMC_EEPROM_ADR)) {
pp_printf("EEPROM not found..\n");
return -1;
}
if (args[0] && !strcasecmp(args[0], "erase")) {
if (storage_init_erase() < 0)
pp_printf("Could not erase init script\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment