Skip to content

Commit 8b14752

Browse files
authored
Merge pull request #79 from arduino-libraries/Esquirio/Updating_Record_and_replay_code
Changing the Learn and Repeat to Record and Repaly in Braccio_Record_Peplay project
2 parents 06941f4 + f7f41fc commit 8b14752

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

examples/Braccio_Record_and_Replay/AppState.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const char * btnm_map[] = { "RECORD", "\n", "REPLAY", "\n", "ZERO_POSITION", "\n
3434
static float sample_buf[SAMPLE_BUF_SIZE];
3535
static int sample_cnt;
3636

37-
extern LearnAndRepeatApp app;
37+
extern RecordAndReplayApp app;
3838

3939
/**************************************************************************************
4040
* FUNCTION DEFINITION
@@ -313,10 +313,10 @@ void ZeroState::onExit()
313313
}
314314

315315
/**************************************************************************************
316-
* LearnAndRepeatApp
316+
* RecordAndReplayApp
317317
**************************************************************************************/
318318

319-
void LearnAndRepeatApp::enableButtons()
319+
void RecordAndReplayApp::enableButtons()
320320
{
321321
/* Enable buttons once init is complete. */
322322
lv_btnmatrix_clear_btn_ctrl(btnm, 0, LV_BTNMATRIX_CTRL_DISABLED);

examples/Braccio_Record_and_Replay/AppState.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef LEARN_AND_REPEAT_APP_STATE_H_
2-
#define LEARN_AND_REPEAT_APP_STATE_H_
1+
#ifndef RECORD_AND_REPLAY_APP_STATE_H_
2+
#define RECORD_AND_REPLAY_APP_STATE_H_
33

44
/**************************************************************************************
55
* INCLUDE
@@ -114,10 +114,10 @@ class ZeroState : public State
114114
virtual State * handle_OnTimerTick() override;
115115
};
116116

117-
class LearnAndRepeatApp
117+
class RecordAndReplayApp
118118
{
119119
public:
120-
LearnAndRepeatApp()
120+
RecordAndReplayApp()
121121
: _state{nullptr}
122122
, _mtx{}
123123
{ }
@@ -151,4 +151,4 @@ class LearnAndRepeatApp
151151
rtos::Mutex _mtx;
152152
};
153153

154-
#endif /* LEARN_AND_REPEAT_APP_STATE_H_ */
154+
#endif /* RECORD_AND_REPLAY_APP_STATE_H_ */

examples/Braccio_Record_and_Replay/Braccio_Record_and_Replay.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* GLOBAL VARIABLES
1111
**************************************************************************************/
1212

13-
LearnAndRepeatApp app;
13+
RecordAndReplayApp app;
1414

1515
/**************************************************************************************
1616
* SETUP/LOOP

0 commit comments

Comments
 (0)