Skip to content

Commit 3f7453b

Browse files
committed
missing bsize variable for socket classes needed by file write routines
1 parent 299a6cc commit 3f7453b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

nxt/fantomsock.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222

2323
class BluetoothSocket:
24+
bsize = BT_BUFSIZE - 4 # Bluetooth socket block size
25+
2426
'''recv() method is currently reported broken'''
2527
def __init__(self, _sock=None):
2628
# We instantiate a NXT object only when we connect if none supplied
@@ -64,6 +66,8 @@ def close(self):
6466

6567

6668
class USBSocket:
69+
bsize = USB_BUFSIZE - 4 # USB socket block size
70+
6771
def __init__(self, device=None):
6872
self._sock = device
6973
self.debug = FANTOMSOCK_DEBUG

0 commit comments

Comments
 (0)