Skip to content

Commit

Permalink
removed comments no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejameson authored and blakejameson committed Jan 21, 2025
1 parent db2ae4b commit 5d920e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions lib/pysquared/cdh.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
jokereply = config["jokereply"]
super_secret_code = config["super_secret_code"].encode("utf-8")
repeat_code = config["repeat_code"].encode("utf-8")
# print(f"Super secret code is: {super_secret_code}")
# @blakejameson NOTE: moving the line of code above to the functions.py file. Being that this print statement
# is above the function calls and there is no class here, I am unable to inject a Logger into use for this bit of code.
filename = "cdh.py"


Expand Down
6 changes: 2 additions & 4 deletions lib/pysquared/pysquared.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def debug_print(self, statement: Any) -> None:
def error_print(self, statement: Any) -> None:
self.c_error_count += 1 # Limited to 255 errors
if self.debug:
# print(co("[pysquared]" + str(statement), "red", "bold"))
self.logger.error(filename=filename, message=str(statement))

def __init__(self, logger: Logger) -> None:
Expand Down Expand Up @@ -369,10 +368,9 @@ def __init__(self, logger: Logger) -> None:
self.i2c1
)
self.hardware["Mag"] = True
except Exception:
except Exception as e:
self.error_print("[ERROR][Magnetometer]")
# traceback.print_exception(None, e, e.__traceback__)
# @blakejameson NOTE: needing to consult with others to figure out best plan for the line above
self.error_print(e.__traceback__)

"""
RTC Initialization
Expand Down

0 comments on commit 5d920e7

Please sign in to comment.