# HG changeset patch # User Paul Boddie # Date 1714690242 -7200 # Node ID 286d162842d9fe5caaa737c0712f33e17c25f2fc # Parent 8ff97e105720cfa28334a343ccdbe697d75be6e6 Fixed OCR recording and added high-capacity status output. diff -r 8ff97e105720 -r 286d162842d9 pkg/devices/lib/msc/src/common.cc --- a/pkg/devices/lib/msc/src/common.cc Tue Apr 30 01:52:17 2024 +0200 +++ b/pkg/devices/lib/msc/src/common.cc Fri May 03 00:50:42 2024 +0200 @@ -560,7 +560,7 @@ // Set the OCR in the current card since we need the CCS indicator. - _cards[_num_cards].ocr = ocr; + _cards[_num_cards].ocr = r3.ocr; } void @@ -690,6 +690,7 @@ printf("read access time (1 2): %d %d\n", csd->data_read_access_time_1, csd->data_read_access_time_2); printf("DSR: %s\n", csd->dsr_implemented ? "yes" : "no"); + printf("high capacity: %s\n", _cards[card].ocr & Ocr_high_capacity_storage ? "yes" : "no"); } }