File tree 3 files changed +17
-1
lines changed
3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 31
31
- people_measurements :
32
32
- tso :
33
33
- motion_counter :
34
+ - pass_counter_left :
35
+ - pass_counter_right :
34
36
- pass_counter_adult :
35
37
- pass_counter_child :
36
38
- stay_counter_adult :
Original file line number Diff line number Diff line change @@ -367,6 +367,18 @@ int app_cbor_encode(zcbor_state_t *zs)
367
367
zcbor_uint32_put (zs , measurement -> motion_counter );
368
368
}
369
369
370
+ if (!is_valid ) {
371
+ zcbor_nil_put (zs , NULL );
372
+ } else {
373
+ zcbor_uint32_put (zs , measurement -> pass_counter_left );
374
+ }
375
+
376
+ if (!is_valid ) {
377
+ zcbor_nil_put (zs , NULL );
378
+ } else {
379
+ zcbor_uint32_put (zs , measurement -> pass_counter_right );
380
+ }
381
+
370
382
if (!is_valid ) {
371
383
zcbor_nil_put (zs , NULL );
372
384
} else {
Original file line number Diff line number Diff line change 33
33
LOG_MODULE_REGISTER (app_measure , LOG_LEVEL_DBG );
34
34
35
35
#define MAX_REPETITIONS 5
36
- #define MAX_DIFFERENCE 100
36
+ #define MAX_DIFFERENCE 100
37
37
38
38
K_MUTEX_DEFINE (g_app_measure_weight_lock );
39
39
@@ -344,6 +344,8 @@ int app_measure_people(void)
344
344
345
345
} else {
346
346
LOG_INF ("Motion counter: %u" , measurement .motion_counter );
347
+ LOG_INF ("Pass counter (left): %u" , measurement .pass_counter_left );
348
+ LOG_INF ("Pass counter (right): %u" , measurement .pass_counter_right );
347
349
LOG_INF ("Pass counter (adult): %u" , measurement .pass_counter_adult );
348
350
LOG_INF ("Pass counter (child): %u" , measurement .pass_counter_child );
349
351
LOG_INF ("Stay counter (adult): %u" , measurement .stay_counter_adult );
You can’t perform that action at this time.
0 commit comments