Skip to content

Commit

Permalink
fix: adjust delay
Browse files Browse the repository at this point in the history
  • Loading branch information
edy555 committed Oct 22, 2019
1 parent 47fec0b commit f6e9c6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ ensure_edit_config(void)
cal_status = 0;
}

#define DELAY_CHANNEL_CHANGE 1
#define DELAY_CHANNEL_CHANGE 3

// main loop for measurement
bool sweep(bool break_on_operation)
Expand All @@ -671,7 +671,7 @@ bool sweep(bool break_on_operation)
(*sample_func)(measured[0][i]);

tlv320aic3204_select(1); // CH1:TRANSMISSION
wait_dsp(delay + DELAY_CHANNEL_CHANGE);
wait_dsp(DELAY_CHANNEL_CHANGE);

/* calculate transmission coeficient */
(*sample_func)(measured[1][i]);
Expand Down
2 changes: 1 addition & 1 deletion si5351.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ si5351_set_frequency(int channel, int freq, uint8_t drive_strength)

int current_band = -1;

#define DELAY_NORMAL 2
#define DELAY_NORMAL 3
#define DELAY_BANDCHANGE 1
#define DELAY_LOWBAND 1

Expand Down

0 comments on commit f6e9c6f

Please sign in to comment.