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

The driver for the Planewave Delta-T was not working #1515

Merged
merged 1 commit into from
Jul 21, 2021
Merged

The driver for the Planewave Delta-T was not working #1515

merged 1 commit into from
Jul 21, 2021

Conversation

nicholasdahlke
Copy link
Contributor

The driver for the Planewave Delta-T was not working, it always displayed "Invalid Checksum", even tho the checksum was correct. Changing the type of the checksum from uint8_t to char fixed everything, and the driver is now working properly

@knro knro merged commit 0e9873a into indilib:master Jul 21, 2021
@nicholasdahlke nicholasdahlke deleted the planewave_deltat_fix branch July 21, 2021 19:55
@jpaana
Copy link
Contributor

jpaana commented Jul 21, 2021

Using plain char as a type for anything else than ASCII text is prone to problems as C and C++ standards don't specify whether it is signed or unsigned and that depends on the architecture. It's unsigned on ARM and signed on x86/x64. So strongly recommended to use (u)int8_t, (un)signed char or anything that specifies signedness explicitly.

@knro
Copy link
Contributor

knro commented Jul 22, 2021

Good point, int8_t should probably be used.

@nicholasdahlke nicholasdahlke restored the planewave_deltat_fix branch July 22, 2021 05:24
@nicholasdahlke
Copy link
Contributor Author

Thanks for that suggestion, I have not that much experience with C++, so I thought it was a good solution to my problem, I will try changing the type to int8_t.

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.

None yet

3 participants