jarjonam 5 vuotta sitten
vanhempi
commit
b1404aa5d6
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      pi/ADUCv2p1.py
  2. 1 1
      pi/server.py

+ 1 - 1
pi/ADUCv2p1.py

@@ -20,7 +20,7 @@ class ADUCv2p1:
         self.get_wf_len();
         if with_about==True:
             print( self.get_text())
-            print( "-----------------\n")
+            print( "----------------\n")
 
     # Read last valid waveform from the microcontroller, up to 256 points
     def read_data(self):

+ 1 - 1
pi/server.py

@@ -25,7 +25,7 @@ def save_waveform():
 	signal_std = np.std(data[state["start"]:state["stop"]])
 	wf_number = chip.get_wf_cnt()
 	timestamp = time.time()
-	print(wf_num, timestamp, last_wf_num, last_timestamp)
+	print(wf_number, timestamp, last_wf_number, last_timestamp)
 	if(last_wf_number>0 and wf_number - last_wf_number>0):
 		state["board_freq"] = (timestamp - last_timestamp)/(wf_number - last_wf_number)
 	last_wf_number, last_timestamp = wf_number, timestamp