Skip to content
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

Fix prvPeriod in AnalogIO - starting value 1628136801 on SAMD #539

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

tyeth
Copy link
Contributor

@tyeth tyeth commented Jan 17, 2024

Separating this out from #538

@tyeth tyeth requested a review from brentru January 17, 2024 15:55
@@ -145,6 +145,7 @@ void Wippersnapper_AnalogIO::initAnalogInputPin(
if (_analog_input_pins[i].enabled == false) {
_analog_input_pins[i].pinName = pin;
_analog_input_pins[i].period = periodMs;
_analog_input_pins[i].prvPeriod = 0L;
Copy link
Member

Choose a reason for hiding this comment

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

@tyeth Is there anywhere else in the analogio or digitalio class this bug is present?

@tyeth
Copy link
Contributor Author

tyeth commented Jan 17, 2024 via email

@brentru
Copy link
Member

brentru commented Jan 17, 2024

We are going to refactor these two classes during the api-v2 transition so I wouldn't worry too much about that. Thanks for taking a look, LGTM.

@tyeth tyeth merged commit e254ac0 into main Jan 17, 2024
29 checks passed
@tyeth tyeth deleted the fix-analogIO-prvPeriod branch January 17, 2024 16:48
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.

2 participants