UpdateHub / updatehub

A generic and safe Firmware Over-The-Air (FOTA) agent for Embedded and Industrial Linux-based devices
https://updatehub.io
Mozilla Public License 2.0
120 stars 21 forks source link

cloud-sdk: Use `usize` for number of `probe` retries #358

Closed otavio closed 4 years ago

otavio commented 4 years ago

We can avoid the use of casting (for u64), which can in fact fail, using usize for the number of probe retries. The usize use here seems a good fit as it matches the word size of the current in-use CPU architecture.

Signed-off-by: Otavio Salvador otavio@ossystems.com.br