瀏覽代碼

no message

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);
             }