J1850-VPW-Arduino-Transceiver-Library icon indicating copy to clipboard operation
J1850-VPW-Arduino-Transceiver-Library copied to clipboard

j1850vpw.cpp line 339 won't cast as written

Open weinerschizel opened this issue 6 months ago • 1 comments

Not sure if this is my IDE doing this... Don't think so, but if so I'm working with Platform IO in Visual Studio Code. Receive build error as follows:

image

Changing code as follows let me build the code.

FROM: return handleErrorsInternal(J1850_Write, result); CHANGED TO: return handleErrorsInternal(J1850_Write, static_cast<J1850_ERRORS>(result));

I noticed my IDE doesn't like to cast to enums. Not exactly sure what build tools are inside of Platform IO. Maybe a none issue in other toolsets.

weinerschizel avatar Aug 23 '24 01:08 weinerschizel