This commit is contained in:
105042004
2019-08-13 17:37:09 +08:00
parent abacf8b977
commit 5d545d6acf
2 changed files with 1 additions and 9 deletions
@@ -769,12 +769,6 @@ static void update_ZM_instruction(uint8 *ins) {
if(ins[10] | ins[11]){
Amplitude = ((uint16_t) (ins[10]) << 8) | (uint16_t) (ins[11]);
}
if(ins[12]){
PulsePeriod = ins[12];
}
if(ins[13]){
PulseWidth = ins[13];
}
break;
}
@@ -646,7 +646,6 @@ static void DPVCurve(){
if( counter <= (PulsePeriod - PulseWidth)) outputV = Volt1;
else outputV = Volt2;
*/
LED_color(DARKLED, 0xff, 0x00, 0x00);
DAC_outputV(Volt1);
// record the output voltage
@@ -673,8 +672,7 @@ static void DPVCurve(){
//check overflow/underflow and prepare for next output
Volt1 = Volt1 + Amplitude;
LED_color(DARKLED, 0xff, 0xfa, 0x64);
Volt1 = Volt1 + 0x1000;
}