|
@@ -1,7 +1,7 @@
|
|
|
#!/usr/bin/env python
|
|
|
from smbus import SMBus
|
|
|
import time
|
|
|
-from struct import*
|
|
|
+from struct import *
|
|
|
import array
|
|
|
import numpy as np
|
|
|
|
|
@@ -168,9 +168,9 @@ class ADUCv2p1:
|
|
|
def get_wf_cnt(self):
|
|
|
block = self.bus_pi.read_i2c_block_data(self._addr,113,8)
|
|
|
buff = pack("8B",*block)
|
|
|
- dat = unpack("<I",buff)
|
|
|
- dat=np.uint32(dat)
|
|
|
- return dat[0]
|
|
|
+ dat = unpack("<Q",buff)
|
|
|
+ dat=np.uint64(dat)
|
|
|
+ return int(dat[0])
|
|
|
|
|
|
#
|
|
|
def get_v_cnt(self):
|