Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Aug 19, 2024
1 parent 2061f8b commit a47724a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/class/Abeille.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1432,11 +1432,6 @@ public static function checkZgIeee($net, $ieee) {

// Check if received attribute is a battery information
public static function checkIfBatteryInfo($eqLogic, $attrName, $attrVal) {
// if ($attrName == "Battery-Volt") { // Obsolete
// $attrVal = round($attrVal, 0);
// $eqLogic->setStatus('battery', self::volt2pourcent($attrVal));
// $eqLogic->setStatus('batteryDatetime', date('Y-m-d H:i:s'));
// } else
if (($attrName == "Battery-Percent") || ($attrName == "Batterie-Pourcent")) { // Obsolete
$attrVal = round($attrVal, 0);
log::add('Abeille', 'debug', " Battery % reporting: ".$attrName.", val=".$attrVal);
Expand Down

0 comments on commit a47724a

Please sign in to comment.