Skip to content

Commit bcec14e

Browse files
fix TfFromUrl bug
1 parent aac6931 commit bcec14e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/SineFromInternetExample/SineFromInternetExample.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ void http_get() {
9494

9595
model = (uint8_t*) malloc(modelSize);
9696

97-
http.read(model, modelSize);
97+
// copy model from response
98+
for (uint16_t i = 0; i < modelSize; i++)
99+
model[i] = http.read();
100+
98101
print_model(modelSize);
99102
}
100103

0 commit comments

Comments
 (0)