Skip to content

Commit

Permalink
Run prediction if model was initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
xtnctx authored May 27, 2023
1 parent c5d9313 commit 40b5f67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Arduino Nano 33 BLE Sense/ble_file_transfer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ const char* HOTSPOT[] = {
"on_target"
};

bool isModelInitialized = false;

#define NUM_HOTSPOT (sizeof(HOTSPOT) / sizeof(HOTSPOT[0]))

// Comment this macro back in to log received data to the serial UART.
Expand Down Expand Up @@ -539,6 +541,7 @@ void loop() {
// Serial.println(proximity);
}

if (isModelInitialized) runPrediction(aX, aY, aZ, gX, gY, gZ);


// Serial.print("Temperature = ");
Expand Down

0 comments on commit 40b5f67

Please sign in to comment.