[firmware] sim_switch + wwan_perst: Don't re-initialize

The logic to detect if the respective module is already initialized
or not was broken.  When performing initialization, we of course need
to set initialized=1.
This commit is contained in:
Harald Welte
2017-11-03 20:50:47 +01:00
parent 965d5c918a
commit eb50c9f914
2 changed files with 2 additions and 0 deletions

View File

@@ -69,5 +69,6 @@ int sim_switch_init(void)
PIO_Configure(&pin_conn_usim2, 1);
num_switch++;
#endif
initialized = 1;
return num_switch;
}

View File

@@ -109,5 +109,6 @@ int wwan_perst_init(void)
perst2.timer.data = (void *) &perst2;
num_perst++;
#endif
initialized = 1;
return num_perst;
}