Skip to content

Commit d58e19c

Browse files
authored
fixedTypo to update label_count in response
1 parent f8e8bca commit d58e19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/magic_wand/magic_wand.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ void loop() {
672672

673673
int8_t max_score;
674674
int max_index;
675-
for (int i = 0; i < 10; ++i) {
675+
for (int i = 0; i < label_count; ++i) {
676676
const int8_t score = output->data.int8[i];
677677
if ((i == 0) || (score > max_score)) {
678678
max_score = score;

0 commit comments

Comments
 (0)