mirror of
https://github.com/jonathanhogg/scopething
synced 2025-07-14 03:02:09 +01:00
Small tweaks
This commit is contained in:
4
vm.py
4
vm.py
@ -4,7 +4,7 @@ import logging
|
||||
import struct
|
||||
|
||||
|
||||
Log = logging.getLogger('streams')
|
||||
Log = logging.getLogger('vm')
|
||||
|
||||
|
||||
Registers = {
|
||||
@ -257,7 +257,7 @@ class VirtualMachine:
|
||||
values = []
|
||||
width = calculate_width(dtype)
|
||||
for i in range(width):
|
||||
values.append(int(await self.read_reply(), 16))
|
||||
values.append(int((await self.read_replies(2))[1], 16))
|
||||
if i < width-1:
|
||||
await self.issue(b'np')
|
||||
return decode(bytes(values), dtype)
|
||||
|
Reference in New Issue
Block a user