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

Why assign a boolean to a string? #221

Open
trixymoon opened this issue Mar 3, 2023 · 1 comment
Open

Why assign a boolean to a string? #221

trixymoon opened this issue Mar 3, 2023 · 1 comment

Comments

@trixymoon
Copy link

the instruction modem.setNetworkMode(2); at line


return a boolean

Just do:

if (!modem.setNetworkMode(2)) {
        DBG("setNetworkMode  false ");
        return ;
}

and it's the same for the instruction modem.setPreferredMode(3); at line

if (!modem.setPreferredMode(3)) {
        DBG("setPreferredMode  false ");
        return ;
}
@gulliverrr
Copy link

Duplicate of #119

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

No branches or pull requests

2 participants