Skip to content

Commit

Permalink
update OTA_VERSION_ID to V4
Browse files Browse the repository at this point in the history
  • Loading branch information
JyeSmith committed Sep 15, 2024
1 parent bd5fcc7 commit 625b37d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/include/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// Used to XOR with OtaCrcInitializer and macSeed to reduce compatibility with previous versions.
// It should be incremented when the OTA packet structure is modified.
#define OTA_VERSION_ID 3
#define OTA_VERSION_ID 4
#define UID_LEN 6

typedef enum : uint8_t
Expand Down
4 changes: 2 additions & 2 deletions src/lib/FHSS/FHSS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ uint16_t secondaryBandCount;
void FHSSrandomiseFHSSsequence(const uint32_t seed)
{
FHSSconfig = &domains[firmwareOptions.domain];
sync_channel = (FHSSconfig->freq_count / 2) + 1;
sync_channel = FHSSconfig->freq_count / 2;
freq_spread = (FHSSconfig->freq_stop - FHSSconfig->freq_start) * FREQ_SPREAD_SCALE / (FHSSconfig->freq_count - 1);
primaryBandCount = (FHSS_SEQUENCE_LEN / FHSSconfig->freq_count) * FHSSconfig->freq_count;

Expand All @@ -87,7 +87,7 @@ void FHSSrandomiseFHSSsequence(const uint32_t seed)

#if defined(RADIO_LR1121)
FHSSconfigDualBand = &domainsDualBand[0];
sync_channel_DualBand = (FHSSconfigDualBand->freq_count / 2) + 1;
sync_channel_DualBand = FHSSconfigDualBand->freq_count / 2;
freq_spread_DualBand = (FHSSconfigDualBand->freq_stop - FHSSconfigDualBand->freq_start) * FREQ_SPREAD_SCALE / (FHSSconfigDualBand->freq_count - 1);
secondaryBandCount = (FHSS_SEQUENCE_LEN / FHSSconfigDualBand->freq_count) * FHSSconfigDualBand->freq_count;

Expand Down

0 comments on commit 625b37d

Please sign in to comment.