Skip to content

Add menu for clearing temperature calibration#296

Merged
jgfoster merged 11 commits intoOpen-Acidification:mainfrom
pianistrevor:ManageTempCalibration
Mar 7, 2022
Merged

Add menu for clearing temperature calibration#296
jgfoster merged 11 commits intoOpen-Acidification:mainfrom
pianistrevor:ManageTempCalibration

Conversation

@pianistrevor
Copy link
Copy Markdown
Collaborator

Implements #224

Copy link
Copy Markdown
Member

@jgfoster jgfoster left a comment

Choose a reason for hiding this comment

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

LGTM. Let's ask @prestoncarman for a review as well...

if (correction != 0) {
correction = 0.0;
EEPROM_TC::instance()->setCorrectedTemp(correction);
serial(F("Set temperature correction to %i.%02i"), (int)correction, (int)(correction * 100 + 0.5) % 100);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You could just say that the new correction is "0.0", but this is fine as well.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I like this because we would catch it if it’s bugged.

@jgfoster jgfoster requested a review from prestoncarman March 6, 2022 04:18
Copy link
Copy Markdown
Member

@prestoncarman prestoncarman left a comment

Choose a reason for hiding this comment

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

LGTM

@jgfoster jgfoster merged commit 517d9a0 into Open-Acidification:main Mar 7, 2022
@pianistrevor pianistrevor deleted the ManageTempCalibration branch March 10, 2022 05:10
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.

3 participants