User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
heat_meter_sks-3_axis_industries [2018/08/02 12:58]
emozolyak
heat_meter_sks-3_axis_industries [2018/08/02 13:00] (current)
emozolyak
Line 13: Line 13:
 local REQ_UD2 = {0x10, 0x7B, 0x5D, 0xD8, 0x16} local REQ_UD2 = {0x10, 0x7B, 0x5D, 0xD8, 0x16}
  
-local err_cnt = 0            -- счетчик ошибок+local err_cnt = 0            -- error counter ​
 local dif_err_mask = 0x30    -- parameter error mask  local dif_err_mask = 0x30    -- parameter error mask 
 local resp3 = {}            -- table for response bytes  local resp3 = {}            -- table for response bytes 
Line 77: Line 77:
     end     end
  
--- after 10 errors reset againg ​+-- after 10 errors reset again 
 if err_cnt > 10 then if err_cnt > 10 then
     AppRST = false     AppRST = false
Line 279: Line 279:
    
     end -- if     end -- if
-return nil --  found noting ​+return nil --  found nothing ​
 end -- of efindpos end -- of efindpos
 </​code>​ </​code>​
  

Page Tools