diff --git a/include/create/create.h b/include/create/create.h index 0652861..8cc1d8c 100644 --- a/include/create/create.h +++ b/include/create/create.h @@ -286,15 +286,15 @@ namespace create { /** * \brief Set the four 7-segment display digits from left to right. * - * \todo This function is not yet implemented refer to https://github.com/AutonomyLab/libcreate/issues/7 + * \todo This function is not yet implemented refer to https://github.com/AutonomyLab/libcreate/issues/7 * \param segments to enable (true) or disable (false). * The size of segments should be less than 29. * The ordering of segments is left to right, top to bottom for each digit: * *
- 0 7 14 21 - |‾‾‾| |‾‾‾| |‾‾‾| |‾‾‾| - 1 |___| 2 8 |___| 9 15 |___| 16 22 |___| 23 + 0 7 14 21 + |‾‾‾| |‾‾‾| |‾‾‾| |‾‾‾| + 1 |___| 2 8 |___| 9 15 |___| 16 22 |___| 23 | 3 | | 10| | 17| | 24| 4 |___| 5 11|___| 12 18 |___| 19 25 |___| 26 6 13 20 27 diff --git a/src/create.cpp b/src/create.cpp index b87443d..e59a8a0 100644 --- a/src/create.cpp +++ b/src/create.cpp @@ -1063,7 +1063,7 @@ namespace create { } } - bool Create::isSideBrushOvercurrent() const { + bool Create::isSideBrushOvercurrent() const { if (data->isValidPacketID(ID_OVERCURRENTS)) { return (GET_DATA(ID_OVERCURRENTS) & 0x01) != 0; } @@ -1073,7 +1073,7 @@ namespace create { } } - bool Create::isMainBrushOvercurrent() const { + bool Create::isMainBrushOvercurrent() const { if (data->isValidPacketID(ID_OVERCURRENTS)) { return (GET_DATA(ID_OVERCURRENTS) & 0x04) != 0; } @@ -1082,8 +1082,8 @@ namespace create { return false; } } - - bool Create::isWheelOvercurrent() const { + + bool Create::isWheelOvercurrent() const { if (data->isValidPacketID(ID_OVERCURRENTS)) { return (GET_DATA(ID_OVERCURRENTS) & 0x18) != 0; }