Skip to content

Slave hack#28

Open
GuyBlumenthal wants to merge 8 commits into
ryan_misc_changesfrom
slave_hack
Open

Slave hack#28
GuyBlumenthal wants to merge 8 commits into
ryan_misc_changesfrom
slave_hack

Conversation

@GuyBlumenthal

Copy link
Copy Markdown
Contributor

No description provided.

} else if (pkt.addr <= 14) {
// We are dealing with one of the temp sensors. We will store them in the first two cell temperatures
global_bms_data.battery.cells[pkt.addr - 13].temp = UINT_TO_FLOAT(*((uint32_t*)pkt.payload));
} else {} // Something went wrong, idk maybe do something?

@Nushaab-Syed Nushaab-Syed May 27, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure what the limitations of the perfboard slave device are but can we send an error message via uart? something like a printf statement would be sufficient

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Nushaab-Syed Nushaab-Syed left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just left a minor comment in slave_thread.cpp regarding sending an error message via uart when encountering a problem with parsing a msg

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.

3 participants