From 22833ef0c6ff705130c9c7e39c83103b5b6a1c12 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sat, 17 Oct 2020 13:37:18 +0800 Subject: [PATCH] libconfig/sd_reader: added FAT16_LBA ID --- libconfig/src/sd_reader.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libconfig/src/sd_reader.rs b/libconfig/src/sd_reader.rs index 245cba5..5254a07 100644 --- a/libconfig/src/sd_reader.rs +++ b/libconfig/src/sd_reader.rs @@ -10,6 +10,7 @@ const PARTID_FAT16_LESS32M: u8 = 0x04; const PARTID_FAT16: u8 = 0x06; const PARTID_FAT32: u8 = 0x0B; const PARTID_FAT32_LBA: u8 = 0x0C; +const PARTID_FAT16_LBA: u8 = 0x0E; fn cmd_error_to_io_error(_: CmdTransferError) -> Error { Error::new(ErrorKind::Other, "Command transfer error") @@ -161,7 +162,7 @@ impl SdReader { debug!("Partition ID: {:0X}", buffer[0]); match buffer[0] { PARTID_FAT12 | PARTID_FAT16_LESS32M | PARTID_FAT16 | - PARTID_FAT32 | PARTID_FAT32_LBA => {} + PARTID_FAT16_LBA | PARTID_FAT32 | PARTID_FAT32_LBA => {} _ => { return Err(Error::new( ErrorKind::InvalidData,