- no update of DAC in error state

git-svn-id: http://moon:8086/svn/projects/HendiControl@32 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-02-28 22:09:06 +00:00
parent 8c83ebf1fb
commit 0bd94e6859
+4 -1
View File
@@ -215,7 +215,10 @@ int main(void)
state_next = StateOff; state_next = StateOff;
setSwitch(0); setSwitch(0);
} }
setPower(adc_curr << 2); if (state == StateNormal)
{
setPower(adc_curr << 2);
}
} }
} }
} }