MS-PDRLKVHCADMG\Administrator 5 vuotta sitten
vanhempi
commit
dbfeefcac1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -694,7 +694,7 @@ class Lampcontrol extends Base_Controller {
             }elseif ($key == 'load_current') {
                 $word = substr('0000'.base_convert(round($value/10), 10, 16), -4);
             }elseif ($key == 'induction_delay') {
-                $word = substr('00'.base_convert(round($value/10), 10, 16), -4);
+                $word = substr('00'.base_convert(round($value/10), 10, 16), -2);
             }else{
                 $word = substr('00'.base_convert($value, 10, 16), -2);
             }