mutability / dump978

Experimental demodulator/decoder for UAT on 978MHz
GNU General Public License v2.0
169 stars 81 forks source link

receiver.json isn't written (only the receiver.json.new file is written) #5

Closed bakerkj closed 8 years ago

bakerkj commented 8 years ago

The code in write_receiver_json() never renames the receiver.json.new file to receiver.json. Below is a patch that does.


static int write_receiver_json(const char *dir) { char path[PATH_MAX];

@@ -200,6 +201,11 @@ static int write_receiver_json(const char *dir) "}\n"); fclose(f);

mutability commented 8 years ago

Good catch, thanks!