|
|
@@ -126,10 +126,17 @@ void pi_i2c_mcu(){
|
|
|
// this is when WWDT resets the MCU during the charging cycle
|
|
|
battery->cycle_number = battery_limit_received.previous_cycle_number;
|
|
|
battery->batteryLimitReceived= true;
|
|
|
- }
|
|
|
+ }
|
|
|
+ /*if(battery_limit_received.previous_cycle_number > MAX_CYCLES){
|
|
|
+ DL_I2C_fillTargetTXFIFO(I2C_0_INST, (uint8_t *)statusResponse[1], 1);
|
|
|
+ }else{
|
|
|
+ DL_I2C_fillTargetTXFIFO(I2C_0_INST, (uint8_t *)statusResponse[0], 1);
|
|
|
+ }
|
|
|
+ DL_I2C_flushTargetTXFIFO(I2C_0_INST);*/
|
|
|
}
|
|
|
rx_index= 0;
|
|
|
DL_I2C_flushTargetRXFIFO(I2C_0_INST);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|