stanleyhuangyc / Freematics

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

logger elm327 sketch wont compile #6

Closed hayden-t closed 9 years ago

hayden-t commented 9 years ago

trying to compile this in arduino ide: https://github.com/stanleyhuangyc/Freematics/blob/master/firmware_v2/elm327emu/elm327emu.ino

elm327emu.ino: In function 'void loop()':
elm327emu:39: error: invalid conversion from 'char*' to 'const uint8_t*'
elm327emu:39: error: initializing argument 1 of 'virtual size_t Print::write(const uint8_t*, size_t)'

one possible workaround might be this:

Serial.write((const uint8_t *)cmd, cmdlen);

hayden-t commented 9 years ago

using latest 1.6.3 does not produce this error, closing