Skip to content

Heinrichs Weikamp: Display the Model for OSTC4 / OSTC5. #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: Subsurface-DS9
Choose a base branch
from

Conversation

mikeller
Copy link
Member

@mikeller mikeller commented Jun 8, 2025

Display the actual model of the dive computer in the Extra Info.

@mikeller mikeller requested a review from Copilot June 8, 2025 06:17
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces changes to display the model information of the dive computer in the Extra Info section.

  • Change the return status for scrubber time fields from DATAFORMAT to UNSUPPORTED.
  • Add a new case (case 8) to display the model based on the parser's serial number.

}

string->desc = "Remaining scrubber time at end [minutes]";
snprintf(buf, BUFLEN, "%d", parser->last_scrubber_time_minutes);
break;
case 8:
if (parser->model != OSTC4) {
Copy link
Preview

Copilot AI Jun 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarify the rationale behind using the parser's serial number to determine the model string after checking that parser->model is OSTC4. Adding a comment to explain the significance of the 1500 threshold will improve code maintainability.

Copilot uses AI. Check for mistakes.

@mikeller mikeller force-pushed the hw_ostc_4_5_report_model branch from 4d13737 to aa53022 Compare June 8, 2025 07:22
@mikeller mikeller force-pushed the hw_ostc_4_5_report_model branch from aa53022 to 528ec04 Compare June 14, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant