Fix issue #10: correctly exit from programming mode when radio does not support writing CSV list.

This commit is contained in:
Serge Vakulenko 2018-11-03 17:01:36 -07:00
parent 7a9fc7e534
commit 7b1d6aa82a

View File

@ -374,13 +374,13 @@ void radio_write_csv(const char *filename)
if (!device->write_csv) {
fprintf(stderr, "%s does not support CSV database.\n", device->name);
exit(-1);
return;
}
csv = fopen(filename, "r");
if (! csv) {
perror(filename);
exit(-1);
return;
}
fprintf(stderr, "Read file '%s'.\n", filename);