1
0
mirror of https://github.com/s00500/SimpleExpressions synced 2024-12-03 13:01:29 +00:00

Update SimpleExpressions.cpp

This commit is contained in:
Lukas Bachschwell 2017-12-13 14:51:57 +01:00 committed by GitHub
parent 5574f6f732
commit 6d19e4bd02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ void SimpleExpressionsClass::initBuzzer(int aBuzzerPin) {
//-- MOUTHS ----------------------------------------//
///////////////////////////////////////////////////////////////////
void SimpleExpressionsClass::writeMouth(char mouthName[], int r, int g, int b) {
void SimpleExpressionsClass::writeMouth(const char mouthName[], int r, int g, int b) {
int number = -1;
for(int i = 0; i < frameCount; i++){
if(strncmp(shapes[i].name, mouthName, 20) == 0) {
@ -54,7 +54,7 @@ void SimpleExpressionsClass::printMouth(int number, int r, int g, int b) {
clearPixels();
}
void SimpleExpressionsClass::writeMouth(char mouthName[] ) {
void SimpleExpressionsClass::writeMouth(const char mouthName[] ) {
int number = -1;
for(int i = 0; i < colorFrameCount; i++){
if(strncmp(shapes[i].name, mouthName, 20) == 0) {