Skip to content

Commit

Permalink
add record command and update release #
Browse files Browse the repository at this point in the history
  • Loading branch information
lkasso committed Nov 16, 2021
1 parent 71aae9a commit 2a4e459
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "MetaWear C++ API"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.20.1
PROJECT_NUMBER = 0.20.4

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ dist/
└── lib
└── x64
├── libmetawear.so -> libmetawear.so.0
├── libmetawear.so.0 -> libmetawear.so.0.20.1
└── libmetawear.so.0.20.1
├── libmetawear.so.0 -> libmetawear.so.0.20.4
└── libmetawear.so.0.20.4

```

Expand Down
4 changes: 2 additions & 2 deletions project_version.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.20.3
VERSION=0.20.4
VERSION_MAJOR=0
VERSION_MINOR=20
VERSION_STEP=3
VERSION_STEP=4
7 changes: 7 additions & 0 deletions src/metawear/core/cpp/macro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ static int32_t macro_add_cmd_response(MblMwMetaWearBoard *board, const uint8_t *
return MBL_MW_STATUS_OK;
}

static int32_t macro_add_cmd_response_raw(MblMwMetaWearBoard *board, const uint8_t *response, uint8_t len) {
auto state = GET_MACRO_STATE(board);
state->commands_recorded(state->commands_recorded_context, board, response[2]);

return MBL_MW_STATUS_OK;
}

void init_macro_module(MblMwMetaWearBoard *board) {
board->responses.emplace(piecewise_construct, forward_as_tuple(MBL_MW_MODULE_MACRO, ORDINAL(MacroRegister::BEGIN)),
forward_as_tuple(macro_add_cmd_response));
Expand Down
1 change: 0 additions & 1 deletion src/metawear/core/macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ extern "C" {
* @param exec_on_boot True if the commands should be executed when the board powers on
*/
METAWEAR_API void mbl_mw_macro_record(MblMwMetaWearBoard *board, uint8_t exec_on_boot);

METAWEAR_API void mbl_mw_macro_record_raw(MblMwMetaWearBoard *board, uint8_t exec_on_boot, void *context, MblMwFnBoardPtrInt ready);
/**
* Ends macro recording.
Expand Down

0 comments on commit 2a4e459

Please sign in to comment.