vovagorodok / ArduinoBleOTA

Upload firmware over Bluetooth
MIT License
24 stars 8 forks source link

Fixing compilation for std < c++17 #3

Closed n0-0b0dy closed 1 year ago

n0-0b0dy commented 1 year ago

static_assert requires a message argument in versions before c++17 (https://en.cppreference.com/w/cpp/language/static_assert).

The code was not compiling for me (using platformio and NimBLE). So, i fixed it, introducing a message for the static_assert calls.

vovagorodok commented 1 year ago

Nice! Thanks for fixing