Skip to content

Commit

Permalink
removed self.debug as it is not set up yet
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaPoliti committed Feb 1, 2024
1 parent 6f81aeb commit 27a00e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions science_jubilee/Machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,10 +437,10 @@ def gcode(self, cmd: str = "", timeout = None, response_wait :float = 30):
"""

#TODO: Add serial option for gcode commands from MA
if self.debug or self.simulated:
print(f"sending: {cmd}")
if self.simulated:
print(f"sending: {cmd}")
return None

try:
# Try sending the command with requests.post
response = requests.post(f"http://{self.address}/machine/code", data=f"{cmd}", timeout=timeout).text
Expand Down

0 comments on commit 27a00e7

Please sign in to comment.