From 7b1d6aa82aa9df25674fe623a374e24a10889439 Mon Sep 17 00:00:00 2001 From: Serge Vakulenko Date: Sat, 3 Nov 2018 17:01:36 -0700 Subject: [PATCH] Fix issue #10: correctly exit from programming mode when radio does not support writing CSV list. --- radio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio.c b/radio.c index 68e34de..0d72d54 100644 --- a/radio.c +++ b/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);