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 max character bug #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix max character bug #21

wants to merge 2 commits into from

Conversation

melizeche
Copy link
Collaborator

Currently the captive portal allows you to enter 13 characters for latitude and longitude

This cause a weird bug where only longitude is stored and the POST fails because it doesn't have the latitude value

Also the length for these fields is set to 12

char latitude[12] = "";
char longitude[12] = "";

In my tests 12 chars was also buggy so 11 is the number, more than enough for our use case(see reference)

@melizeche melizeche requested a review from garyservin December 1, 2024 06:52
@garyservin
Copy link
Owner

@melizeche did you test what the firmware will do if you have a 13 string stored (from the previous version) and you update to this new version?

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