newaetech / chipwhisperer

ChipWhisperer - the complete open-source toolchain for side-channel power analysis and glitching attacks
http://chipwhisperer.com
Other
1.09k stars 280 forks source link

fixed segment's samples modulo #478

Closed Chaman-veteran closed 7 months ago

Chaman-veteran commented 7 months ago

The segment mode (activated with scope.adc.fifo_fill_mode = "segment") keeps warning about (sample-1) not being divisible by 3 (warning in _OpenADCInterface.py, line 1574) even if sample-1 is divisible by 3. In fact, the modulo to check for rounding lack some parentheses. This commit and PR fixes it :)

alex-dewar commented 7 months ago

Looks good, thanks for the fix