make options 'v' and 'h' work, even if no SIM-PM is connected

This commit is contained in:
Pete Hildebrandt 2012-02-07 00:08:21 +01:00
parent a7e748360e
commit 5ff4a05a5b
1 changed files with 5 additions and 3 deletions

View File

@ -477,9 +477,11 @@ void parse_command_line(int argc, char* argv[], int count, struct usb_device*dev
#endif
// using first available device
id = get_id(dev[devnum]);
if (((id == PRODUCT_ID_MSISPM_OLD) || (id == PRODUCT_ID_MSISPM_FLASH)) && (from != upto))
from = upto = 1;
if (c != 'h' && c != 'v') {
id = get_id(dev[devnum]);
if (((id == PRODUCT_ID_MSISPM_OLD) || (id == PRODUCT_ID_MSISPM_FLASH)) && (from != upto))
from = upto = 1;
}
for (i=from; i <= upto; i++) {
switch(c) {
case 's':