Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
developers-guide [2019/02/02 11:18]
wolfmanjm [Checksums]
developers-guide [2021/02/22 17:48] (current)
Line 17: Line 17:
 === Checksums === Checksums
  
-Say we have a setting that looks like this in our config file : +Say we have a setting that looks like this in our config file : 
  
 <code> <code>
Line 47: Line 47:
    uint16_t sum2 = 0;    uint16_t sum2 = 0;
    for( int index = 0; index < to_check.length(); ++index ){    for( int index = 0; index < to_check.length(); ++index ){
-      sum1 = (sum1 + to_check[index]) % 255;+      sum1 = (sum1 + to_check[[index|]]) % 255;
       sum2 = (sum2 + sum1) % 255;       sum2 = (sum2 + sum1) % 255;
    }    }