Skip to content

Commit

Permalink
Battery Fix Spaces LTrim
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jan 31, 2012
1 parent 5c1d8ac commit 172a350
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 27 deletions.
Binary file modified src/i-nex/.gambas/BATTERY
Binary file not shown.
Binary file modified src/i-nex/.gambas/FINFOSYS
Binary file not shown.
1 change: 1 addition & 0 deletions src/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Public Sub Form_Open()
Dim default_display_manager As Boolean = Exist("/etc/X11/default-display-manager")
Dim cpuz0, cpuz1, cpuz2, cpuz3, cpuz4, cpuz5, cpuz6, cpuz7, cpuz8, cpuz9, cpuz10, cpuz11 As String

Finfosys.TabStrip1[9].Visible = False
Object.Call(battery, "_init")
Debug "Check for Usb device plugged"
Expand Down
43 changes: 16 additions & 27 deletions src/i-nex/.src/battery.module
Original file line number Diff line number Diff line change
Expand Up @@ -54,32 +54,21 @@ Public Sub _get_inf()
End

Public Sub _replace_n()
Present = Replace(Present, "\n", "")
Present = Replace(Present, " ", "")
Design_capacity = Replace(Design_capacity, "\n", "")
Design_capacity = Replace(Design_capacity, " ", "")
last_full_capacity = Replace(last_full_capacity, "\n", "")
last_full_capacity = Replace(last_full_capacity, " ", "")
battery_technology = Replace(battery_technology, "\n", "")
battery_technology = Replace(battery_technology, " ", "")
design_voltage = Replace(design_voltage, "\n", "")
design_voltage = Replace(design_voltage, " ", "")
design_capacity_warning = Replace(design_capacity_warning, "\n", "")
design_capacity_warning = Replace(design_capacity_warning, " ", "")
design_capacity_low = Replace(design_capacity_low, "\n", "")
design_capacity_low = Replace(design_capacity_low, " ", "")
cycle_count = Replace(cycle_count, "\n", "")
cycle_count = Replace(cycle_count, " ", "")
capacity_granularity_1 = Replace(capacity_granularity_1, "\n", "")
capacity_granularity_1 = Replace(capacity_granularity_1, " ", "")
capacity_granularity_2 = Replace(capacity_granularity_2, "\n", "")
capacity_granularity_2 = Replace(capacity_granularity_2, " ", "")
model_number = Replace(model_number, "\n", "")
model_number = Replace(model_number, " ", "")
serial_number = Replace(serial_number, "\n", "")
serial_number = Replace(serial_number, " ", "")
battery_type = Replace(battery_type, "\n", "")
battery_type = Replace(battery_type, " ", "")
OEM_info = Replace(OEM_info, "\n", "")
Present = Replace(LTrim$(Present), "\n", "")
'Present = LTrim$(Present)
Design_capacity = LTrim$(Design_capacity)
'Design_capacity =
last_full_capacity = Replace(LTrim$(last_full_capacity), "\n", "")
battery_technology = Replace(LTrim$(battery_technology), "\n", "")
design_voltage = Replace(LTrim$(design_voltage), "\n", "")
design_capacity_warning = Replace(LTrim$(design_capacity_warning), "\n", "")
design_capacity_low = Replace(LTrim$(design_capacity_low), "\n", "")
cycle_count = Replace(LTrim$(cycle_count), "\n", "")
capacity_granularity_1 = Replace(LTrim$(capacity_granularity_1), "\n", "")
capacity_granularity_2 = Replace(LTrim$(capacity_granularity_2), "\n", "")
model_number = Replace(LTrim$(model_number), "\n", "")
serial_number = Replace(LTrim$(serial_number), "\n", "")
battery_type = Replace(LTrim$(battery_type), "\n", "")
OEM_info = Replace(LTrim$(OEM_info), "\n", "")
End

0 comments on commit 172a350

Please sign in to comment.