Skip to content

Commit

Permalink
update if
Browse files Browse the repository at this point in the history
  • Loading branch information
xtnctx authored Oct 2, 2023
1 parent 275ff56 commit 969c4a1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Arduino Nano 33 BLE Sense/loadmodelsdcard.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,11 @@ void loop() {

for (uint32_t i=0; i<file_length; i++) {
code += file[i];
if(file[i] == ' ') {
if(file[i] == ' ' || i == file_length-1) {
file_buffers[new_size] = code.toInt();
new_size++;
code = "";
}
// get last code
if(i == file_length-1) {
file_buffers[new_size] = code.toInt();
new_size++;
code = "";
}

}

for (size_t i=new_size; i<file_buffer_length; i++) {
Expand Down

0 comments on commit 969c4a1

Please sign in to comment.