From 215be19b4747b180cd9038594c064b44c13de7da Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Wed, 30 Jan 2019 13:28:30 +0100 Subject: [PATCH] Changed to fix compiler warnings. --- src/MD_RobotEyes.cpp | 8 +------- src/MD_RobotEyes.h | 4 +++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/MD_RobotEyes.cpp b/src/MD_RobotEyes.cpp index edfa844..77e44b0 100644 --- a/src/MD_RobotEyes.cpp +++ b/src/MD_RobotEyes.cpp @@ -14,18 +14,12 @@ #define PRINTX(s, v) #endif -MD_RobotEyes::MD_RobotEyes(void) : -_nextEmotion(E_NEUTRAL), _animState(S_IDLE), -_autoBlink(true), _timeBlinkMinimum(5000) -{ -}; void MD_RobotEyes::loadEye(uint8_t module, uint8_t ch) { uint8_t buf[EYE_COL_SIZE]; - uint8_t size; - size = _M->getChar(ch, EYE_COL_SIZE, buf); + _M->getChar(ch, EYE_COL_SIZE, buf); for (uint8_t i = 0; i < EYE_COL_SIZE; i++) { diff --git a/src/MD_RobotEyes.h b/src/MD_RobotEyes.h index 49a2ca0..c7e544c 100644 --- a/src/MD_RobotEyes.h +++ b/src/MD_RobotEyes.h @@ -62,7 +62,9 @@ public: * * Instantiate a new instance of the class. */ - MD_RobotEyes(void); + MD_RobotEyes(void): + _timeBlinkMinimum(5000), _animState(S_IDLE), _autoBlink(true), _nextEmotion(E_NEUTRAL) + {}; /** * Class Destructor.