From: Kevin Day Date: Thu, 17 Nov 2022 05:13:54 +0000 (-0600) Subject: Regression: Wrong bitwise operator used. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=d9d9d41e22f81fe2b08131be1b831148c07b3c50;p=fll Regression: Wrong bitwise operator used. The commit ef89fafafe125e0afbf83476f255f52e176a9c72 has a mistake where the wrong bitwise operation is used. --- diff --git a/level_3/fss_payload_write/c/private-write.c b/level_3/fss_payload_write/c/private-write.c index a5c3b3b..97537b5 100644 --- a/level_3/fss_payload_write/c/private-write.c +++ b/level_3/fss_payload_write/c/private-write.c @@ -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 {