Skip to content

Commit

Permalink
fixed bug in printEasingType that causes a crash in ESP32 (#97)
Browse files Browse the repository at this point in the history
Thanks for fixing 🥇
  • Loading branch information
candorgander authored Oct 29, 2024
1 parent 1fc3bad commit 22f1f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServoEasing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ void ServoEasing::printEasingType(Print *aSerial, uint_fast8_t aEasingType) {
const char *tEaseTypeStringPtr = (char*) pgm_read_word(&easeTypeStrings[aEasingType & EASE_TYPE_MASK]);
aSerial->print((__FlashStringHelper*) (tEaseTypeStringPtr));
# else
aSerial->print(easeTypeStrings[aEasingType]);
aSerial->print(easeTypeStrings[aEasingType & EASE_TYPE_MASK]);
# endif
uint_fast8_t tEasingTypeCallStyle = aEasingType & CALL_STYLE_MASK;
if (tEasingTypeCallStyle == CALL_STYLE_IN) {
Expand Down

0 comments on commit 22f1f39

Please sign in to comment.