1
0
mirror of https://github.com/jonathanhogg/scopething synced 2025-07-14 03:02:09 +01:00

Small tweaks

This commit is contained in:
Jonathan Hogg
2016-10-19 18:44:58 +01:00
parent 79b7b41c0d
commit fee5e5c455
2 changed files with 27 additions and 26 deletions

4
vm.py
View File

@ -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)