fixed bug in smp adapter
This commit is contained in:
@@ -388,7 +388,7 @@ class SMP(TelnetAdapter, RecorderAdapter):
|
||||
self.tn.write("{}YRCDR\n".format(self.esc_char))
|
||||
return int(TelnetAdapter._get_response_str(self.tn.read_until_non_empty_line()))
|
||||
|
||||
def is_recording(self):
|
||||
def is_recording(self) -> bool:
|
||||
return self.get_recording_status() == 1
|
||||
|
||||
def extent_recording_time(self, extension_time: int):
|
||||
@@ -723,9 +723,6 @@ class SMP(TelnetAdapter, RecorderAdapter):
|
||||
some advanced options skipped
|
||||
"""
|
||||
|
||||
def is_recording(self) -> bool:
|
||||
pass
|
||||
|
||||
def get_input_hdcp_status(self, input_number: int):
|
||||
"""
|
||||
returns:
|
||||
@@ -790,6 +787,7 @@ def main():
|
||||
|
||||
print(smp)
|
||||
print(smp.get_recording_status())
|
||||
print(smp.is_recording())
|
||||
|
||||
exit()
|
||||
smp._login()
|
||||
|
||||
Reference in New Issue
Block a user