Skip to content

Commit dddb25c

Browse files
committed
[hot fix]: added thread stack size for issues on mblock callbacks, 1.1.4 release ready
1 parent df1d7a5 commit dddb25c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

arduino_alvik/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
__author__ = "Lucio Rossi <[email protected]>, Giovanni Bruno <[email protected]>"
66
__license__ = "MPL 2.0"
7-
__version__ = "1.1.3"
7+
__version__ = "1.1.4"
88
__maintainer__ = "Lucio Rossi <[email protected]>, Giovanni Bruno <[email protected]>"
99
__required_firmware_version__ = "1.1.1"
1010

arduino_alvik/arduino_alvik.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def __new__(cls):
8686
cls._instance = super(ArduinoAlvik, cls).__new__(cls)
8787
return cls._instance
8888

89-
def __init__(self):
89+
def __init__(self, stack_size = THREAD_STACK_SIZE):
90+
_thread.stack_size(stack_size)
9091
self.i2c = _ArduinoAlvikI2C(A4, A5)
9192
self._packeter = ucPack(200)
9293
self.left_wheel = _ArduinoAlvikWheel(self._packeter, ord('L'), alvik=self)

arduino_alvik/robot_definitions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212

1313
# Robot params
1414
ROBOT_MAX_DEG_S = 6*(2*MOTOR_MAX_RPM*WHEEL_DIAMETER_MM)/WHEEL_TRACK_MM
15+
16+
# Thread stack size
17+
THREAD_STACK_SIZE = 8*1024

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
["github:arduino/ucPack-mpy", "0.1.7"],
1414
["github:arduino/arduino-runtime-mpy", "0.4.0"]
1515
],
16-
"version": "1.1.3"
16+
"version": "1.1.4"
1717
}

0 commit comments

Comments
 (0)