From 5fa3f59f5f70d37c12e7952024bfe6bd5dd99a10 Mon Sep 17 00:00:00 2001
From: dspitzba <daniel.spitzbart@cern.ch>
Date: Fri, 21 Apr 2023 15:37:26 -0400
Subject: [PATCH] fixing default verbosity in lpGBT I2C functions

---
 tamalero/LPGBT.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tamalero/LPGBT.py b/tamalero/LPGBT.py
index 887d465..f4b086a 100644
--- a/tamalero/LPGBT.py
+++ b/tamalero/LPGBT.py
@@ -1128,11 +1128,11 @@ class LPGBT(RegParser):
                 status = self.rd_adr(i2cm0status+OFFSET_RD)
                 retries += 1
                 if retries > 50:
-                    if not verbose:
+                    if verbose:
                         print ("Write not successfull!")
                     break
 
-    def I2C_read(self, reg=0x0, master=2, slave_addr=0x70, nbytes=1, adr_nbytes=2, freq=2, verbose=True):
+    def I2C_read(self, reg=0x0, master=2, slave_addr=0x70, nbytes=1, adr_nbytes=2, freq=2, verbose=False):
         #https://gitlab.cern.ch/lpgbt/pigbt/-/blob/master/backend/apiapp/lpgbtLib/lowLevelDrivers/MASTERI2C.py#L83
 
         # debugging
-- 
GitLab