Skip to content

Commit 4d13737

Browse files
committed
Heinrichs Weikamp: Display the Model for OSTC4 / OSTC5.
Signed-off-by: Michael Keller <[email protected]>
1 parent 2e6aab2 commit 4d13737

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/hw_ostc_parser.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,19 +818,28 @@ hw_ostc_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsigned
818818
break;
819819
case 6:
820820
if (parser->first_scrubber_time_minutes == INT_MAX) {
821-
return DC_STATUS_DATAFORMAT;
821+
return DC_STATUS_UNSUPPORTED;
822822
}
823823

824824
string->desc = "Remaining scrubber time at start [minutes]";
825825
snprintf(buf, BUFLEN, "%d", parser->first_scrubber_time_minutes);
826826
break;
827827
case 7:
828828
if (parser->last_scrubber_time_minutes == INT_MAX) {
829-
return DC_STATUS_DATAFORMAT;
829+
return DC_STATUS_UNSUPPORTED;
830830
}
831831

832832
string->desc = "Remaining scrubber time at end [minutes]";
833833
snprintf(buf, BUFLEN, "%d", parser->last_scrubber_time_minutes);
834+
break;
835+
case 8:
836+
if (parser->model != OSTC4) {
837+
return DC_STATUS_UNSUPPORTED;
838+
}
839+
840+
string->desc = "Model";
841+
snprintf(buf, BUFLEN, "%s", parser->serial < 1500 ? "OSTC4" : "OSTC5");
842+
834843
break;
835844
default:
836845
return DC_STATUS_UNSUPPORTED;

0 commit comments

Comments
 (0)