read current
This commit is contained in:
+4
-8
@@ -850,15 +850,15 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
if(!If10Von){
|
||||
TurnOn10V();
|
||||
}
|
||||
CleanBuffer();
|
||||
|
||||
|
||||
switch (ins_type) {
|
||||
/*** These are real instruction ***/
|
||||
case INS_TYPE_RIS:{
|
||||
CleanBuffer();
|
||||
switch(ins[2]){
|
||||
case IVCurve:{
|
||||
INSTRUCTION.eliteFxn = IVCurve;
|
||||
PeriodicEvent = true;
|
||||
DACreset = true;
|
||||
|
||||
if(ins[3] | ins[4]){
|
||||
@@ -879,7 +879,6 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
|
||||
case cyclicVoltammetry:{
|
||||
INSTRUCTION.eliteFxn = cyclicVoltammetry;
|
||||
PeriodicEvent = true;
|
||||
DACreset = true;
|
||||
|
||||
if(ins[3] | ins[4]){
|
||||
@@ -910,13 +909,11 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
// impedance test
|
||||
case ZTCurve: {
|
||||
INSTRUCTION.eliteFxn = ZTCurve;
|
||||
PeriodicEvent = true;
|
||||
break;
|
||||
}
|
||||
|
||||
case VTCurve:{
|
||||
INSTRUCTION.eliteFxn = VTCurve;
|
||||
PeriodicEvent = true;
|
||||
StepTime = 0x14;
|
||||
|
||||
// SimpleProfile_SetParameter(BLE_DAT_BUFF_CHAR, BLE_DAT_BUFF_SIZE, not_buf);
|
||||
@@ -926,7 +923,6 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
|
||||
case ITCurve:{
|
||||
INSTRUCTION.eliteFxn = ITCurve;
|
||||
PeriodicEvent = true;
|
||||
StepTime = 0x14;
|
||||
|
||||
// IT_Plot(); // enable 10v = 1
|
||||
@@ -940,7 +936,7 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
not_buf[1] = ins[4];
|
||||
not_buf[2] = ins[5];
|
||||
not_buf[3] = ins[6];
|
||||
SimpleProfile_SetParameter(BLE_DAT_BUFF_CHAR, BLE_DAT_BUFF_SIZE, not_buf);
|
||||
// SimpleProfile_SetParameter(BLE_DAT_BUFF_CHAR, BLE_DAT_BUFF_SIZE, not_buf);
|
||||
|
||||
break;
|
||||
}
|
||||
@@ -952,7 +948,6 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
|
||||
case ADCTEST:{
|
||||
INSTRUCTION.eliteFxn = ADCTEST;
|
||||
PeriodicEvent = true;
|
||||
// uint8_t ADCin = 0;
|
||||
// int32_t AIN = 0;
|
||||
// switch(ins[3]){
|
||||
@@ -1096,6 +1091,7 @@ static void update_ZM_instruction(uint8 *ins) {
|
||||
}
|
||||
|
||||
case VIS_STI:{
|
||||
PeriodicEvent = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -601,6 +601,7 @@ static void SimpleBLEPeripheral_performPeriodicTask() {
|
||||
}
|
||||
|
||||
default: {
|
||||
LED_color(0xE8, 0x0E, 0x0E, 0x0E);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user