Skip to content

Commit 2a4e459

Browse files
committed
add record command and update release #
1 parent 71aae9a commit 2a4e459

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "MetaWear C++ API"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 0.20.1
41+
PROJECT_NUMBER = 0.20.4
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ dist/
7575
└── lib
7676
└── x64
7777
├── libmetawear.so -> libmetawear.so.0
78-
├── libmetawear.so.0 -> libmetawear.so.0.20.1
79-
└── libmetawear.so.0.20.1
78+
├── libmetawear.so.0 -> libmetawear.so.0.20.4
79+
└── libmetawear.so.0.20.4
8080

8181
```
8282

project_version.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.20.3
1+
VERSION=0.20.4
22
VERSION_MAJOR=0
33
VERSION_MINOR=20
4-
VERSION_STEP=3
4+
VERSION_STEP=4

src/metawear/core/cpp/macro.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ static int32_t macro_add_cmd_response(MblMwMetaWearBoard *board, const uint8_t *
5050
return MBL_MW_STATUS_OK;
5151
}
5252

53+
static int32_t macro_add_cmd_response_raw(MblMwMetaWearBoard *board, const uint8_t *response, uint8_t len) {
54+
auto state = GET_MACRO_STATE(board);
55+
state->commands_recorded(state->commands_recorded_context, board, response[2]);
56+
57+
return MBL_MW_STATUS_OK;
58+
}
59+
5360
void init_macro_module(MblMwMetaWearBoard *board) {
5461
board->responses.emplace(piecewise_construct, forward_as_tuple(MBL_MW_MODULE_MACRO, ORDINAL(MacroRegister::BEGIN)),
5562
forward_as_tuple(macro_add_cmd_response));

src/metawear/core/macro.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ extern "C" {
2323
* @param exec_on_boot True if the commands should be executed when the board powers on
2424
*/
2525
METAWEAR_API void mbl_mw_macro_record(MblMwMetaWearBoard *board, uint8_t exec_on_boot);
26-
2726
METAWEAR_API void mbl_mw_macro_record_raw(MblMwMetaWearBoard *board, uint8_t exec_on_boot, void *context, MblMwFnBoardPtrInt ready);
2827
/**
2928
* Ends macro recording.

0 commit comments

Comments
 (0)