Skip to content

Mody ADC_GetConversionValue return data#14

Open
scarletwiz wants to merge 1 commit into
Wiznet:masterfrom
scarletwiz:scarletwiz-patch-1
Open

Mody ADC_GetConversionValue return data#14
scarletwiz wants to merge 1 commit into
Wiznet:masterfrom
scarletwiz:scarletwiz-patch-1

Conversation

@scarletwiz

Copy link
Copy Markdown

The original ADC_GetConversionValue function had a return statement defined only within an if statement,
leading to a warning because an unspecified value would be returned if the if statement did not execute.

This update modifies the code to ensure a return value of 0 when the if statement does not execute, addressing the issue of returning an undefined value.

@jaredmauch jaredmauch left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very straightforward fix. I'm also going to be sending some PRs for the DNS and IP settings work as well. Hopefully they will accept these merges.

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