From c4657734f9888f5d9f6d10764086d8a2b36eec57 Mon Sep 17 00:00:00 2001 From: N-Storm Date: Mon, 24 Jun 2024 12:10:11 +0300 Subject: [PATCH] Software: fixed bug with getting incorrect FW versions which might occur on Linux/hidraw builds due to getting version from opened USB HID device info, instead of new info handle. Also, warning on unsupported old-alg by FW ver now appears only if -o option was selected. --- software/src/digilivolo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/software/src/digilivolo.c b/software/src/digilivolo.c index 5e9df54..f6b673b 100644 --- a/software/src/digilivolo.c +++ b/software/src/digilivolo.c @@ -143,7 +143,7 @@ int main(int argc, char* argv[]) } } - if (dl_dev->release_number < 0x200) { + if (arguments.old_alg && info->release_number < 0x200) { arguments.old_alg = false; if (arguments.verbose) { printf("WARN: Device firmware version doesn't supports old-alg feature. Using default, which should be old algorithm anyways.\n");