Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
timhendriks93 committed Jan 16, 2024
1 parent c42b9bc commit 34dede9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/internal/Animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ void Animation::addScene(const byte *data, int size, byte fps, int frames) {
this->registerScene(scene);
}

void Animation::addScene(Stream &data, byte fps, int frames) {
AnimationData *animationData = new AnimationData(&data);
void Animation::addScene(Stream &stream, byte fps, int frames) {
AnimationData *animationData = new AnimationData(&stream);
Scene *scene = new Scene(&this->servoManager, animationData, fps, frames);
this->registerScene(scene);
}
Expand Down
4 changes: 2 additions & 2 deletions src/internal/Animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class Animation {

int countScenes();

void addScene(const byte *data, int dataLength, byte fps, int frames);
void addScene(Stream &data, byte fps, int frame);
void addScene(const byte *data, int size, byte fps, int frames);
void addScene(Stream &stream, byte fps, int frame);
void onPositionChange(pcb positionCallback);
void onModeChange(mcb modeCallback);
void onSceneChange(scb sceneCallback);
Expand Down
4 changes: 2 additions & 2 deletions test/animation/test_scene_callback/test_scene_callback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void test_play(void) {

TEST_ASSERT_EQUAL(-1, prevSceneIndex);
TEST_ASSERT_EQUAL(-1, nextSceneIndex);

animation.play();

TEST_ASSERT_EQUAL(0, prevSceneIndex);
Expand All @@ -48,7 +48,7 @@ void test_play_single(void) {

TEST_ASSERT_EQUAL(-1, prevSceneIndex);
TEST_ASSERT_EQUAL(-1, nextSceneIndex);

animation.playSingle(1);

TEST_ASSERT_EQUAL(0, prevSceneIndex);
Expand Down

0 comments on commit 34dede9

Please sign in to comment.