]> Kevux Git Server - fll/commitdiff
Regression: Wrong bitwise operator used.
authorKevin Day <thekevinday@gmail.com>
Thu, 17 Nov 2022 05:13:54 +0000 (23:13 -0600)
committerKevin Day <thekevinday@gmail.com>
Thu, 17 Nov 2022 05:13:54 +0000 (23:13 -0600)
The commit ef89fafafe125e0afbf83476f255f52e176a9c72 has a mistake where the wrong bitwise operation is used.

level_3/fss_payload_write/c/private-write.c

index a5c3b3bf266c63c617ebe4bb2ff132e552ce84aa..97537b54109dd39b79daf6e2e26ae154172d6d5b 100644 (file)
@@ -374,8 +374,8 @@ extern "C" {
 
     if (F_status_is_error_not(setting->status)) {
 
-      if (printed | 0x1) {
-        if (printed | 0x2) {
+      if (printed & 0x1) {
+        if (printed & 0x2) {
           setting->status = F_payload;
         }
         else {