MS-PDRLKVHCADMG\Administrator 5 anos atrás
pai
commit
dbfeefcac1
1 arquivos alterados com 1 adições e 1 exclusões
  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);
             }