Skip to content

Commit 5f0df16

Browse files
committed
fix: bridge updates getting stuck: threads miss yielding
1 parent fa744bf commit 5f0df16

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "https://github.com/bcmi-labs/Arduino_RouterBridge",
1212
"maintainer": true
1313
},
14-
"version": "0.1.0",
14+
"version": "0.1.2",
1515
"license": "MIT",
1616
"frameworks": "arduino",
1717
"platforms": "*",

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_RouterBridge
2-
version=0.1.0
2+
version=0.1.2
33
author=BCMI-labs
44
maintainer=BCMI-labs
55
sentence=A RPC bridge for Arduino UNO Q boards

src/bridge.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ BridgeClass Bridge(Serial1);
230230
void updateEntryPoint(void *, void *, void *){
231231
while(1){
232232
Bridge.update();
233+
k_msleep(1);
233234
}
234235
}
235236

@@ -238,6 +239,7 @@ static void safeUpdate(){
238239
}
239240

240241
void __loopHook(){
242+
k_msleep(1);
241243
safeUpdate();
242244
}
243245

0 commit comments

Comments
 (0)