jmichault / flash_cc2531

flash CC2531 USB dongle from your Raspberry, without Arduino nor CC Debugger.

Home Page:https://jmichault.github.io/flash_cc2531-dok/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Size of cc_delay variables

petrpulc opened this issue · comments

Please prove me wrong, but if unsigned char is used as a type for cc_delay(), value of 200 is passed to the function and this value is multiplied by 50 in the function and stored to the same data type (unsigned char), the value inevitably overflows (to value of 16).

Is this a bug or a feature?

Obviously a bug. thanks.

Corrected.