stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
428 stars 347 forks source link

minor bug in logger code #8

Closed hayden-t closed 9 years ago

hayden-t commented 9 years ago

in config.h you state that OBD_ATTEMPTS can be set to 0 to never give up connection attempts, but that dous not happen. yur code needs to look like this instead:

} else if (attempts <= OBD_ATTEMPTS - 1 || !OBD_ATTEMPTS) {

stanleyhuangyc commented 9 years ago

Thanks. Fix committed.

hayden-t commented 9 years ago

thanks