Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xtnctx authored Oct 7, 2023
1 parent bfff29d commit 7135020
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Arduino Nano 33 BLE Sense/ble_file_transfer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ void setup() {
while (1);
}

String previous_file = getPreviousFile();
initOldModel(previous_file);

// String previous_file = getPreviousFile();
// initOldModel(previous_file);
// initializeTFL(file_buffers);
}

char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
Expand Down Expand Up @@ -468,6 +468,7 @@ void initializeTFL(uint8_t model[]){
// Get pointers for the model's input and output tensors
tflInputTensor = tflInterpreter->input(0);
tflOutputTensor = tflInterpreter->output(0);
isModelInitialized = true;
}

void onBLEFileReceived(uint8_t* file_data, int file_length) {
Expand All @@ -494,7 +495,7 @@ void onBLEFileReceived(uint8_t* file_data, int file_length) {
file_buffers[i] = 0;
}

// initializeTFL(file_buffers);
initializeTFL(file_buffers);

}

Expand Down Expand Up @@ -620,7 +621,7 @@ void loop() {

// Serial.println(proximity);
}

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


Expand Down

0 comments on commit 7135020

Please sign in to comment.