User Tools

Site Tools


sensus_heat_meter

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
sensus_heat_meter [2021/01/15 13:37] emozolyaksensus_heat_meter [2021/01/15 13:39] emozolyak
Line 14: Line 14:
     local mask = 0xFF     local mask = 0xFF
          
-    for i = pos, pos+len-1 do+    for i = pos, pos + len - 1 do
         sum = sum + a[i]         sum = sum + a[i]
-        sum = bit.band(sum,mask)+        sum = bit.band(sum, mask)
     end      end 
                               DEBUG("CRC sum in the end of function = "..tostring(sum))                               DEBUG("CRC sum in the end of function = "..tostring(sum))
Line 44: Line 44:
     SND_NKE[4] = getCRC(SND_NKE, 2, 2)     SND_NKE[4] = getCRC(SND_NKE, 2, 2)
 </code> </code>
-{{::data_read.png?400|}}+{{data_read.png|}}
  
sensus_heat_meter.txt · Last modified: 2022/01/15 17:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki