Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveicedgreentea committed Jun 19, 2023
1 parent 3554a35 commit 3918890
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions jvc_projector/jvc_projector.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ def _send_command(
"""
# Check commands
self.logger.debug("Command_type: %s", command_type)
self.logger.debug("Send command: %s is of type %s", send_command, type(send_command))
self.logger.debug(
"Send command: %s is of type %s", send_command, type(send_command)
)
self.logger.debug("Send ack: %s", ack)
if command_type == Header.reference.value:
return self._do_command(send_command, ack, command_type)
Expand All @@ -238,7 +240,7 @@ def _send_command(
return self.emulate_remote(value)
except ValueError:
return f"No value for command provided {send_command}", False

for cmd in send_command:
cons_command, ack = self._construct_command(cmd, command_type)
if not ack:
Expand All @@ -248,9 +250,6 @@ def _send_command(
return self._do_command(cons_command, ack.value, command_type)

else:
str_cmd = send_command.split(",")
if "remote" in str_cmd[0]:
return self.emulate_remote(str_cmd[1])
try:
cons_command, ack = self._construct_command(send_command, command_type)
except TypeError:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="jvc_projector_remote_improved2",
version="3.6.4",
version="3.6.5",
author="iloveicedgreentea",
description="A package to control JVC projectors over IP",
long_description=long_description,
Expand Down

0 comments on commit 3918890

Please sign in to comment.