- 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
+3
View File
@@ -215,10 +215,13 @@ int main(void)
state_next = StateOff; state_next = StateOff;
setSwitch(0); setSwitch(0);
} }
if (state == StateNormal)
{
setPower(adc_curr << 2); setPower(adc_curr << 2);
} }
} }
} }
}
adc_last = adc_curr; adc_last = adc_curr;
} }
break; break;