diff --git a/README.md b/README.md index daa5d58..c3b168e 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ You can find the board schematics at [Makerspet repo](https://github.com/makersp ## Release notes +### v0.3.0 +- virtual class methods +- ESP32 crash workaround + ### v0.2.0 - example bugfix - renamed classes diff --git a/library.properties b/library.properties index ad681d5..5431a50 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=LDS -version=0.2.0 +version=0.3.0 author=Ilia O. maintainer=Ilia O. sentence=Laser distance scan sensors (LDS/LIDAR) wrapper/controller for kaia.ai robotics platform diff --git a/src/LDS.h b/src/LDS.h index 3abbf98..50156a5 100644 --- a/src/LDS.h +++ b/src/LDS.h @@ -94,10 +94,10 @@ class LDS { void setInfoCallback(InfoCallback info_callback); void setErrorCallback(ErrorCallback error_callback); - static String resultCodeToString(result_t code); - static String infoCodeToString(info_t code); - static String pinIDToString(lds_pin_t pin); - static String pinStateToString(lds_pin_state_t state); + virtual String resultCodeToString(result_t code); + virtual String infoCodeToString(info_t code); + virtual String pinIDToString(lds_pin_t pin); + virtual String pinStateToString(lds_pin_state_t state); protected: void postScanPoint(float angle_deg, float dist_mm, float quality, bool scan_completed);