Skip to content

Commit 236d186

Browse files
committed
api v0.18.4 commit
1 parent babad90 commit 236d186

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ dist/
3939
└── lib
4040
└── x64
4141
├── libmetawear.so -> libmetawear.so.0
42-
├── libmetawear.so.0 -> libmetawear.so.0.18.3
43-
└── libmetawear.so.0.18.3
42+
├── libmetawear.so.0 -> libmetawear.so.0.18.4
43+
└── libmetawear.so.0.18.4
4444

4545
```
4646

@@ -88,14 +88,14 @@ Unit tests for the library are written in Python (min v3.4.1) and can be invoked
8888
```sh
8989
> make test
9090
python3 -m unittest discover -s test
91-
................................................................................
92-
................................................................................
93-
................................................................................
94-
................................................................................
95-
...................s............................................................
96-
.................................
91+
.................................................................................
92+
.................................................................................
93+
.................................................................................
94+
.................................................................................
95+
..............................s..................................................
96+
........................................................
9797
----------------------------------------------------------------------
98-
Ran 433 tests in 27.417s
98+
Ran 461 tests in 33.249s
9999

100100
OK (skipped=1)
101101
```

project_version.mk

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

src/metawear/core/cpp/logging.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ static int32_t logging_response_length_received(MblMwMetaWearBoard *board, uint3
357357
// If there are no entires we won't get any responses, so end the download now
358358
// by forcing a callback on the readout progress with 0 remaining entries
359359
if (state->n_log_entries == 0) {
360+
state->latest_tick.clear();
360361
state->rollback_timestamps.clear();
361362
uint8_t readoutResponse[6] = {0};
362363
return logging_response_readout_progress(board, readoutResponse, sizeof(readoutResponse));
@@ -450,6 +451,7 @@ static int32_t logging_response_readout_progress(MblMwMetaWearBoard *board, cons
450451
memcpy(&entries_left, response + 2, min(len - 2, 4));
451452

452453
if (entries_left == 0) {
454+
state->latest_tick.clear();
453455
state->rollback_timestamps.clear();
454456
}
455457
if (state->log_download_handler.received_progress_update != nullptr) {

0 commit comments

Comments
 (0)