WerWolv / libtesla

The support library for Tesla overlays
GNU General Public License v2.0
218 stars 49 forks source link

Fix support for 16.0.0 while not breaking support for older FWs #61

Closed masagrator closed 1 year ago

masagrator commented 1 year ago

https://github.com/WerWolv/libtesla/pull/59 breaks support for older FWs. This PR is fixing this. Braces are added because otherwise example will throw dangling-else warning

WerWolv commented 1 year ago

The else branch probably also needs braces to work properly, no?

masagrator commented 1 year ago

No, it doesn't throw any warning in this shape. I can change it if you want.

WerWolv commented 1 year ago

Still added them just in case and to match styling

WerWolv commented 1 year ago

Thank you!