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

@@ -45,11 +45,11 @@ static struct wwan_perst *get_perst_for_modem(int modem_nr)
switch (modem_nr) {
#ifdef PIN_PERST1
case 1:
case 0:
return &perst1;
#endif
#ifdef PIN_PERST2
case 2:
case 1:
return &perst2;
#endif
default: