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

minor changes #13

Merged
merged 3 commits into from
Jan 14, 2022
Merged

minor changes #13

merged 3 commits into from
Jan 14, 2022

Conversation

karamo
Copy link
Contributor

@karamo karamo commented Jan 13, 2022

warning: comparison is always true due to limited range of data type
warning: comparison is always false due to limited range of data type
and add parentheses
don't name a variable as a reserved word. (is good practice)

warning: comparison is always true due to limited range of data type
and add parentheses
@markqvist
Copy link
Owner

Thanks @karamo. Is there any particular reason for the int for queue_cursor instead of uint16_t? I don't see why it would be better with int, but maybe I am missing it?

correct parentheses
"unused variable" "uninitialized"
@markqvist
Copy link
Owner

Thanks @karamo. Is there any particular reason for the int for queue_cursor instead of uint16_t? I don't see why it would be better with int, but maybe I am missing it?

Ah, no of course, I see it. That was a mistake I made when I changed the datatypes for ESP32 compat. Interestingly, that mistake might be the source of the crashes we talked about on ESP32.

But it needs to have the type size defined for proper cross-platform compabitility, otherwise we risk the types being different sizes on different platforms, but don't worry about that now. I will merge this, correct the size, and test it on both AVR and ESP32.

Thanks karamo

@markqvist
Copy link
Owner

Also, I am going to revert the "vbyte" changes, in my opinion this is purely an aesthetic preference, and I don't agree with it ;)

"Byte" is not a reserved word in C++ or C, so it is perfectly fine to use as a variable name.

@markqvist markqvist merged commit 9dbba03 into markqvist:master Jan 14, 2022
markqvist added a commit that referenced this pull request Jan 14, 2022
@karamo karamo deleted the RNode_FW_WZ branch January 14, 2022 21:02
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