Fix issue #10: correctly exit from programming mode when radio does not support writing CSV list.
This commit is contained in:
parent
7a9fc7e534
commit
7b1d6aa82a
4
radio.c
4
radio.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user