dbinfrago / libpax

Apache License 2.0
21 stars 13 forks source link

Avoid an integer overflow in the pdMS_TO_TICKS macro. Use portTICK_PERIOD_MS as workaround instead. #28

Open commeco opened 1 month ago

commeco commented 1 month ago

As discussed here, this is a fix to avoid an integer overflow if for example the sendcycle in ESP32-Paxcounter is modified to reach several hours.

Due to the fact, that the minimum report interval is 1 second, a configTICK_RATE_HZ of 125 or lower is also working.

What do you think?

Regards Matthias