MS-PDRLKVHCADMG\Administrator преди 5 години
родител
ревизия
dbfeefcac1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
             }