From 11b2c60dee7b715d8ee69e5076547d6a7a499c17 Mon Sep 17 00:00:00 2001 From: Robin Krens Date: Wed, 14 Feb 2024 17:12:05 +0100 Subject: [PATCH] RADevice.py: deleted, moved logic to RAConnect class --- src/RADevice.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/RADevice.py diff --git a/src/RADevice.py b/src/RADevice.py deleted file mode 100644 index 726878b..0000000 --- a/src/RADevice.py +++ /dev/null @@ -1,21 +0,0 @@ -from Packer import * - -class RADevice: - def __init__(self, comm, info): - self.SCI = 0 - self.RMB = 0 - self.NOA = 0x0 - self.TYP = 0x0 - self.BFV = 0x0000 - - if (comm == None): - return - self.get_info(info) - - def get_info(self, info): - fmt = '>IIBBH' - self.SCI, self.RMB, self.NOA, self.TYP, self.BFV = struct.unpack(fmt, info) - print(f'Ver{self.BFV >> 8}.{self.BFV & 0xFF}') - -# test -d = RADevice('a', b'\x01\x31\x2d\x00\x00\x1e\x84\x80\x04\x02\x0a\x08') -- 2.7.4