mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-17 21:58:33 +03:00
consistently use 0-based counting of modems/slots
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user