Skip to content

Commit

Permalink
Fixed bug with overlapping fault bits between converter #1 and #2
Browse files Browse the repository at this point in the history
  • Loading branch information
areiter128 committed Dec 23, 2019
1 parent 0c9a8f9 commit 9754abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apl/tasks/task_PowerControl.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ volatile uint16_t exec_PowerControl(void) {
if (!fltobj_RegulationError_USBPort_1.status.bits.fltchken) fltobj_RegulationError_USBPort_1.status.bits.fltstat = false;

fltobj_RegulationError_USBPort_2.status.bits.fltchken = (volatile bool)(c4swbb_2.status.bits.op_status == CONVERTER_STATE_COMPLETE);
if (!fltobj_RegulationError_USBPort_2.status.bits.fltchken) fltobj_RegulationError_USBPort_1.status.bits.fltstat = false;
if (!fltobj_RegulationError_USBPort_2.status.bits.fltchken) fltobj_RegulationError_USBPort_2.status.bits.fltstat = false;

c4swbb_1.status.bits.fault_active = (volatile bool)(
fltobj_UnderVoltageLockOut.status.bits.fltstat |
Expand Down

0 comments on commit 9754abe

Please sign in to comment.