Skip to content

Commit

Permalink
Merge pull request #1132 from UltimateHackingKeyboard/remove_dongle_p…
Browse files Browse the repository at this point in the history
…rotocol_log

aDon't log when dongle protocol version is fine.
  • Loading branch information
mondalaci authored Feb 14, 2025
2 parents 3230812 + 558c560 commit be04214
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions device/src/state_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,7 @@ static void checkFirmwareVersions(const uhk_module_state_t *moduleState, slot_t
}

static void checkDongleProtocolVersion() {
if (VERSIONS_EQUAL(DongleProtocolVersion, dongleProtocolVersion)) {
LogUOS("Dongle and right half run the same dongle protocol version %d.%d.%d\n",
DongleProtocolVersion.major, DongleProtocolVersion.minor, DongleProtocolVersion.patch
);
} else {
if (!VERSIONS_EQUAL(DongleProtocolVersion, dongleProtocolVersion)) {
LogUOS("Dongle and right half run different dongle protocol versios (dongle: %d.%d.%d, right: %d.%d.%d), please upgrade!\n",
DongleProtocolVersion.major, DongleProtocolVersion.minor, DongleProtocolVersion.patch,
dongleProtocolVersion.major, dongleProtocolVersion.minor, dongleProtocolVersion.patch
Expand Down

0 comments on commit be04214

Please sign in to comment.