-
Notifications
You must be signed in to change notification settings - Fork 128
Enable Set/Reset (write 0x29 to Z_MSB) #192
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
base: master
Are you sure you want to change the base?
Conversation
Enable Set/Reset (write 0x29 to Z_MSB)
rtlopez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- what problem does this change solve?
- there is a typo in file name, QMC5338P but should be QMC5883P.
lib/Espfc/src/Device/MagQMC5338P.h
Outdated
| // We use ±8G (0x02) as the default range for the drone. | ||
| _currentRange = QMC5883P_RANGE_8G; | ||
| setMode(_currentRange); | ||
| // 🔑 Step 1: Enable Set/Reset (write 0x29 to Z_MSB) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plase remove UTF symbols from code.
| _currentRange = QMC5883P_RANGE_8G; | ||
| setMode(_currentRange); | ||
| // Step 1: Enable Set/Reset (write 0x29 to Z_MSB) | ||
| _bus->writeByte(_addr, QMC5883P_REG_ZOUT_MSB, 0x29); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

No description provided.