Skip to content

Commit

Permalink
Fix bug in N_BUNDLES=1 case
Browse files Browse the repository at this point in the history
  • Loading branch information
Aba committed Nov 13, 2023
1 parent 20fcc64 commit 0f80a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ extern EXT_C void load_y (uint8_t *p_done, uint8_t *pt_done_proc, const uint32_
FILE *fp_sum = fopen(f_path_sum, "a");

// Init - add headers to out buffer
static uint8_t write_x_header = 1;
static uint8_t write_x_header = N_BUNDLES == 1 ? 0 : 1;
if (write_x_header) { // enabled for each new bundle
Bundle_t *pb_out = &bundles[ib+1];

Expand Down

0 comments on commit 0f80a19

Please sign in to comment.