|
@@ -775,6 +775,9 @@ class Lampcontrol extends Base_Controller {
|
|
|
$data['system_voltage'] = $this->input->post('system_voltage',true); // 电池电压
|
|
|
$data['battery_count'] = $this->input->post('battery_count',true); // 电池串数
|
|
|
$data['battery_type'] = $this->input->post('battery_type',true); //蓄电池类型
|
|
|
+ if ($data['battery_type'] == 1 || $data['battery_type'] == 2) {
|
|
|
+ $data['battery_count'] = 1;
|
|
|
+ }
|
|
|
$data['overvoltage'] = $this->input->post('overvoltage',true); // 超压电压
|
|
|
$data['char_limit_voltage'] = $this->input->post('char_limit_voltage',true); // 充电限制电压
|
|
|
$data['equ_char_voltage'] = $this->input->post('equ_char_voltage',true); // 均衡充电电压
|