ZT should work

This commit is contained in:
YiChin
2019-09-18 11:37:24 +08:00
parent 78853da803
commit 3fc2ccbc6a
2 changed files with 2 additions and 5 deletions
@@ -10,7 +10,6 @@ static void reset() {
SampleRate_counter = 1;
StepTimeCounter = 1;
avg_number = 0;
ADCRealCurrent = 0;
ADCRealCurrent_long = 0;
@@ -51,7 +50,6 @@ static void Eliteinterrupt() {
StepTimeCounter = 1;
SampleRate_counter = 1;
avg_number = 0;
ADCRealCurrent = 0;
ADCRealCurrent_long = 0;
LEDPowerON();
@@ -91,7 +89,6 @@ static void CleanBuffer() {
SampleRate_counter = 1;
StepTimeCounter = 1;
avg_number = 0;
ADCRealCurrent = 0;
ADCRealCurrent_long = 0;
for (int i = 0; i < SPI_LED_SIZE; i++) {
@@ -834,8 +834,8 @@ static void update_ZM_instruction(uint8 *ins) {
case VOLT_OUTPUT: {
INSTRUCTION.eliteFxn = VOLT_OUTPUT;
INSTRUCTION.VoltConstant = ( ((uint16_t)(ins[3])) << 8) | (uint16_t)(ins[4]);
DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.VoltConstant));
// DAC_outputV(INSTRUCTION.VoltConstant);
// DAC_outputV(Usercode_Correction_to_DAC(INSTRUCTION.VoltConstant));
DAC_outputV(INSTRUCTION.VoltConstant);
break;
}