Skip to content

Conversation

@ssozonoff
Copy link

Useful for other code needing to parse the LPP encoded telemetry data.

}
bool readCurrent(float& amps) {
amps = getFloat(&_buf[_pos], 2, 1000, true); _pos += 2;
amps = getFloat(&_buf[_pos], 2, 1000, false); _pos += 2;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was changed to signed in last commit. Please update your branch

* @param type The LPP type code
* @return Number of bytes of data for this type
*/
static inline uint8_t getLPPDataSize(uint8_t type) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be neater if this was a public static method in the helper class

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