Skip to content

Commit d3fd09d

Browse files
committed
set version to 1.1
added flush after write_raw
1 parent 4439562 commit d3fd09d

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/assets/version.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
VSVersionInfo(
33
ffi=FixedFileInfo(
4-
filevers=(1,0,0,0),
5-
prodvers=(1,0,0,0),
4+
filevers=(1,1,0,0),
5+
prodvers=(1,1,0,0),
66
mask=0x3f,
77
flags=0x0,
88
OS=0x4,
@@ -19,7 +19,7 @@ VSVersionInfo(
1919
StringStruct('InternalName', 'OsciFootswitch'),
2020
StringStruct('OriginalFilename', 'OsciFootswitch.exe'),
2121
StringStruct('ProductName', 'OsciFootswitch'),
22-
StringStruct('ProductVersion', '1.0')]
22+
StringStruct('ProductVersion', '1.1')]
2323
)
2424
]),
2525
VarFileInfo([VarStruct('Translation', [0x0409, 1200])])

src/pc_app/OsciFootswitch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Version
2727
# ----------------------------
2828

29-
APP_VERSION = "1.0"
29+
APP_VERSION = "1.1"
3030

3131
def get_git_version():
3232
try:

src/pc_app/scopes/keysight.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from .base import BaseScope
2+
import pyvisa
23

34

45
# ----------------------------
@@ -110,6 +111,7 @@ def write_setup_data(self, data: bytes) -> bool:
110111
self.scope.write_termination = ''
111112
self.scope.read_termination = ''
112113
self.scope.write_raw(b":SYSTem:SETup " + payload)
114+
self.scope.flush(pyvisa.constants.VI_WRITE_BUF)
113115

114116
self.scope.write_termination = '\n'
115117
self.scope.read_termination = '\n'

src/pc_app/scopes/lecroy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from .base import BaseScope
2+
import pyvisa
23
from PIL import Image
34
import io
45

@@ -81,6 +82,7 @@ def write_setup_data(self, data: bytes) -> bool:
8182

8283
# Send direct to device without any processing, as the setup file is already in the correct binary format
8384
self.scope.write_raw(data)
85+
self.scope.flush(pyvisa.constants.VI_WRITE_BUF)
8486

8587
self.scope.write_termination = '\n'
8688
self.scope.read_termination = '\n'

0 commit comments

Comments
 (0)