@@ -150,13 +150,13 @@ class HomeViewController: UIViewController, UITableViewDataSource, UITableViewDe
150150 case 1 : return 9 // 电池信息
151151 case 2 : // 充电信息
152152 if settingsUtils. getForceShowChargeingData ( ) {
153- return 10
153+ return 11
154154 } else {
155155 if isDeviceCharging ( ) || isChargeByWatts ( ) {
156156 if isNotCharging ( ) { // 判断是否停止充电
157- return 10
157+ return 11
158158 } else {
159- return 9
159+ return 10
160160 }
161161 } else {
162162 return 1
@@ -376,26 +376,32 @@ class HomeViewController: UIViewController, UITableViewDataSource, UITableViewDe
376376 } else {
377377 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " PowerOptions " , comment: " " ) , NSLocalizedString ( " Unknown " , comment: " " ) )
378378 }
379- } else if indexPath. row == 6 { // 充电实时电压
379+ } else if indexPath. row == 6 { // 限制电压
380+ if let limitVoltage = batteryInfo? . chargerData? . vacVoltageLimit {
381+ cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " LimitVoltage " , comment: " " ) , String ( format: " %.2f " , Double ( limitVoltage) / 1000 ) )
382+ } else {
383+ cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " LimitVoltage " , comment: " " ) , NSLocalizedString ( " Unknown " , comment: " " ) )
384+ }
385+ } else if indexPath. row == 7 { // 充电实时电压
380386 if let voltage = batteryInfo? . chargerData? . chargingVoltage {
381387 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " ChargingVoltage " , comment: " " ) , String ( format: " %.2f " , Double ( voltage) / 1000 ) )
382388 } else {
383389 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " ChargingVoltage " , comment: " " ) , NSLocalizedString ( " Unknown " , comment: " " ) )
384390 }
385- } else if indexPath. row == 7 { // 充电实时电流
391+ } else if indexPath. row == 8 { // 充电实时电流
386392 if let current = batteryInfo? . chargerData? . chargingCurrent {
387393 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " ChargingCurrent " , comment: " " ) , String ( format: " %.2f " , Double ( current) / 1000 ) )
388394 } else {
389395 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " ChargingCurrent " , comment: " " ) , NSLocalizedString ( " Unknown " , comment: " " ) )
390396 }
391- } else if indexPath. row == 8 { // 计算的充电功率
397+ } else if indexPath. row == 9 { // 计算的充电功率
392398 if let current = batteryInfo? . chargerData? . chargingCurrent, let voltage = batteryInfo? . chargerData? . chargingVoltage {
393399 let power = ( Double ( voltage) / 1000 ) * ( Double ( current) / 1000 )
394400 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " CalculatedChargingPower " , comment: " " ) , String ( format: " %.2f " , power) )
395401 } else {
396402 cell. textLabel? . text = String . localizedStringWithFormat ( NSLocalizedString ( " CalculatedChargingPower " , comment: " " ) , NSLocalizedString ( " Unknown " , comment: " " ) )
397403 }
398- } else if indexPath. row == 9 {
404+ } else if indexPath. row == 10 {
399405 if let reason = batteryInfo? . chargerData? . notChargingReason {
400406 if reason == 0 { // 电池充电状态正常
401407 cell. textLabel? . text = NSLocalizedString ( " BatteryChargeNormal " , comment: " " )
0 commit comments