summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats
diff options
context:
space:
mode:
author Peter Ferrie <peter.ferrie@gmail.com>2022-08-02 13:18:19 -0700
committer Peter Ferrie <peter.ferrie@gmail.com>2022-08-02 13:18:19 -0700
commit09d82d808a37c1455f8e0fa9fdddf087e23240e0 (patch)
tree2a55277f425cad1c9156e33a29d9ce4523032ec8 /src/lib/formats
parent7cc3481d8ff8893fa8a5ccef4cffd97d73403bc0 (diff)
mfi_dsk: fix logic error (nw)
Diffstat (limited to 'src/lib/formats')
-rw-r--r--src/lib/formats/mfi_dsk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/mfi_dsk.cpp b/src/lib/formats/mfi_dsk.cpp
index 99a421239b7..bbffd81a9dc 100644
--- a/src/lib/formats/mfi_dsk.cpp
+++ b/src/lib/formats/mfi_dsk.cpp
@@ -143,7 +143,7 @@ bool mfi_format::load(util::random_read &io, uint32_t form_factor, const std::ve
unsigned int cell_count = src.size();
uint32_t mg = src[0] & MG_MASK;
uint32_t wmg = src[cell_count - 1] & MG_MASK;
- if(mg != wmg && (mg == OLD_MG_A || mg == OLD_MG_B) && (wmg == OLD_MG_A && wmg == OLD_MG_B))
+ if(mg != wmg && (mg == OLD_MG_A || mg == OLD_MG_B) && (wmg == OLD_MG_A || wmg == OLD_MG_B))
// Flux change at 0, add it
track.push_back(MG_F | 0);