Skip to content

Commit

Permalink
Fixed factory
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Jan 16, 2025
1 parent bd11781 commit 169ead7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/Factory/Factory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -732,9 +732,13 @@ void power_key_pressed()

// Set freq function
radio.standby();
#if defined(USING_LR1121)
// check if we need to recalibrate image
bool skipCalibration = true;
int16_t state = radio.setFrequency(factory_freq[freq_index], skipCalibration);
#else
int16_t state = radio.setFrequency(factory_freq[freq_index]);
#endif
if (state != RADIOLIB_ERR_NONE) {
Serial.printf("Selected frequency %.2f is invalid for this module!\n", factory_freq[freq_index]);
return;
Expand Down

0 comments on commit 169ead7

Please sign in to comment.