Skip to content

Commit

Permalink
fix batteryStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket13011 committed Oct 29, 2023
1 parent 9547b56 commit 4705984
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/class/luna.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public static function cron5() {
$ssid = $luna->getConfiguration('wifi1Ssid', null);
$ssid2 = $luna->getConfiguration('wifi2Ssid', null);
$luna->checkAndUpdateCmd('battery', luna::batteryPourcentage());
$luna->checkAndUpdateCmd('status', luna::batteryStatus());
$luna->checkAndUpdateCmd('status', luna::batteryStatusLuna());
$luna->checkAndUpdateCmd('tempBattery', luna::batteryTemp());
$luna->checkAndUpdateCmd('ssid', $luna->getConfiguration('wifi1Ssid'));
if($ssid != null){
Expand Down Expand Up @@ -590,7 +590,7 @@ public function batteryPourcentage (){
return exec('sudo cat /sys/class/power_supply/bq27546-0/capacity');
}

public function batteryStatus (){
public function batteryStatusLuna (){
return exec('sudo cat /sys/class/power_supply/bq27546-0/status');
}

Expand Down
2 changes: 1 addition & 1 deletion desktop/php/battery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}
$batteryPourcentage = luna::batteryPourcentage();
$tempBattery = luna::batteryTemp();
$status = luna::batteryStatus();
$status = luna::batteryStatusLuna();
$powerAVG = luna::batteryPowerAvg();

if($powerAVG == 0){
Expand Down
3 changes: 3 additions & 0 deletions docs/fr_FR/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
>Pour rappel s'il n'y a pas d'information sur la mise à jour, c'est que celle-ci concerne uniquement de la mise à jour de documentation, de traduction ou de texte.
>
# 29/10/2023
- Fix batterie status.

# 20/10/2023
- Ajout LiXee-GSM dans les regles usb (debrancher puis rebrancher l'equipement pour le voir avec la nouvelle laision usb)

Expand Down

0 comments on commit 4705984

Please sign in to comment.