Skip to content

Commit

Permalink
Fixed so that the program exits correctly when trying to use unimplem…
Browse files Browse the repository at this point in the history
…ented S-record read
  • Loading branch information
Jannibal committed Jan 27, 2017
1 parent 1dd9333 commit 81cdfef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.c
Expand Up @@ -323,6 +323,9 @@ int main(int argc, char **argv) {
{
printf("Reading from Motorola S-record files are not implemented (yet)\n");
printf("Exiting...\n");
exit(-1);

//TODO Remove the above message and exit, and implement reading from S-record.
fprintf(stderr, "Reading from Motorola S-record file ");
srec_write(f, buf, start, start+bytes_count);
}
Expand Down

0 comments on commit 81cdfef

Please sign in to comment.