From 151b9158ee81195a0c068e9ff7b2bb86fef6cfc5 Mon Sep 17 00:00:00 2001 From: nflandin Date: Tue, 3 Sep 2024 15:05:19 -0700 Subject: [PATCH] re: issue 47 by coran21 Correction of FSINFO trail signature in format function --- common/src/fx_media_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/fx_media_format.c b/common/src/fx_media_format.c index d82e78c..ca1cb22 100644 --- a/common/src/fx_media_format.c +++ b/common/src/fx_media_format.c @@ -517,8 +517,8 @@ UINT sectors_per_fat, f, s; byte_ptr[487] = 0x61; /* Build the final signature word, this too is used to help verify that this is a FSINFO sector. */ - byte_ptr[508] = 0x55; - byte_ptr[509] = 0xAA; + byte_ptr[FX_SIG_OFFSET] = FX_SIG_BYTE_1; + byte_ptr[FX_SIG_OFFSET + 1] = FX_SIG_BYTE_2; /* Setup the total available clusters on the media. We need to subtract 1 for the FAT32 root directory. */ _fx_utility_32_unsigned_write(&byte_ptr[488], (total_clusters - 1));