Skip to content

Commit

Permalink
Fix checking firmware mode for v2 capable fw
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslav-ondra committed Apr 24, 2024
1 parent cf3b762 commit 3e9d343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fwdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int fwspi_flash(void* channel, struct page_description *pd_array, int count, in
if (rx_result == ARM_FIRMWARE_KEY) {
break;
}
if (rx_result == 0x0e5500fa) {
if ((rx_result & 0xffff00ff) == 0x0e5500fa) {
kchannel->write_bit(kchannel, 1004, 1, (kchannel->index));
}
if (loop++ > 5) {
Expand Down

0 comments on commit 3e9d343

Please sign in to comment.