consistently use 0-based counting of modems/slots

This commit is contained in:
Harald Welte
2017-05-11 00:04:50 +02:00
parent b91f6ad848
commit 44622dfd8d
3 changed files with 8 additions and 8 deletions

View File

@@ -27,12 +27,12 @@ int sim_switch_use_physical(unsigned int nr, int physical)
switch (nr) {
#ifdef PIN_SIM_SWITCH1
case 1:
case 0:
pin = &pin_conn_usim1;
break;
#endif
#ifdef PIN_SIM_SWITCH2
case 2:
case 1:
pin = &pin_conn_usim2;
break;
#endif