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

Pd rev2 fixes #258

Merged
merged 9 commits into from
Feb 3, 2024
Merged

Pd rev2 fixes #258

merged 9 commits into from
Feb 3, 2024

Conversation

Akashem06
Copy link
Member

No description provided.

Copy link
Collaborator

@mitchellostler mitchellostler left a comment

Choose a reason for hiding this comment

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

Just the one change. I saw you also have your Power FSM changes up, but it looks like they're in this PR too. If you address the comments on that PR here, we can merge this one and close the other, or we can merge that one first and then you can resolve conflicts, up to you.

@@ -4,6 +4,12 @@
#include "outputs.h"
#include "power_distribution_getters.h"

#define brake_lights() \
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a huge fan of this syntax. I think it would be better to just make it a short prv_ function

@@ -72,14 +72,6 @@ static void prv_on_state_output(void *context) {

static void prv_on_state_input(Fsm *fsm, void *context) {
pd_fault_ok_or_transition(fsm);
if (power_context.target_state == POWER_STATE_OFF) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did this logic get removed?

@mitchellostler mitchellostler merged commit 13f3c48 into main Feb 3, 2024
1 check passed
@mitchellostler mitchellostler deleted the PDRev2_Fixes branch February 3, 2024 23:39
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