kill 10V
This commit is contained in:
+1
-2
@@ -721,7 +721,7 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
DACreset = true;
|
||||
|
||||
if(!If10Von){
|
||||
// TurnOn10V();
|
||||
//TurnOn10V();
|
||||
}
|
||||
|
||||
switch (ins_type) {
|
||||
@@ -1040,7 +1040,6 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
|
||||
case VIS_FUH:{
|
||||
LED_color(DARKLED, 0x0F, 0x00, 0x0F);
|
||||
PIN_setOutputValue(pin_handle, enable_10v, 1);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -646,7 +646,7 @@ static void DPVCurve(){
|
||||
if( counter <= (PulsePeriod - PulseWidth)) outputV = Volt1;
|
||||
else outputV = Volt2;
|
||||
*/
|
||||
|
||||
LED_color(LIGHTLED, 0xff, 0x00, 0x00);
|
||||
DAC_outputV(Volt1);
|
||||
|
||||
// record the output voltage
|
||||
@@ -663,16 +663,16 @@ static void DPVCurve(){
|
||||
PeriodicEvent = false;
|
||||
DACreset = true;
|
||||
return;
|
||||
}*/
|
||||
}
|
||||
|
||||
if(Volt1 >= VoltFinal){
|
||||
PeriodicEvent = false;
|
||||
DACreset = true;
|
||||
return;
|
||||
}
|
||||
}*/
|
||||
|
||||
//check overflow/underflow and prepare for next output
|
||||
LED_color(LIGHTLED, 0xff, 0x00, 0x00);
|
||||
|
||||
Volt1 = Volt1 + Amplitude;
|
||||
LED_color(LIGHTLED, 0xff, 0xfa, 0x64);
|
||||
|
||||
@@ -1029,7 +1029,7 @@ static bool TurnOnElite(uint8_t key){
|
||||
// press 1 sec, power on LED
|
||||
if(TurnOnCounter >= 15){
|
||||
PIN_setOutputValue(pin_handle, enable_5v, 1); // enable 5V
|
||||
// TurnOn10V();
|
||||
TurnOn10V();
|
||||
LEDPowerON();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user