From 0a4bf1fcc8284d13e8f90552386dd87afe7f328b Mon Sep 17 00:00:00 2001 From: Michael Arthur Date: Tue, 17 Dec 2024 09:11:49 +1300 Subject: [PATCH] bump version and backport fix for get_maintainence --- pymammotion/mammotion/commands/messages/system.py | 6 +++--- pyproject.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pymammotion/mammotion/commands/messages/system.py b/pymammotion/mammotion/commands/messages/system.py index d87e197..5c7dcc6 100644 --- a/pymammotion/mammotion/commands/messages/system.py +++ b/pymammotion/mammotion/commands/messages/system.py @@ -262,8 +262,8 @@ def request_iot_sys( build.todev_report_cfg.act}") return self.send_order_msg_sys_legacy(build) - def get_maintenance(self) -> None: - self.request_iot_sys( + def get_maintenance(self) -> bytes: + return self.request_iot_sys( rpt_act=RptAct.RPT_START, rpt_info_type=[ RptInfoType.RIT_MAINTAIN, @@ -273,7 +273,7 @@ def get_maintenance(self) -> None: timeout=1000, period=1000, no_change_period=2000, - count=0, + count=3, ) def get_report_cfg_stop(self, timeout: int = 10000, period: int = 1000, no_change_period: int = 1000): diff --git a/pyproject.toml b/pyproject.toml index 0ac321d..e659075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pymammotion" -version = "0.3.5" +version = "0.3.7" [tool.poetry] name = "pymammotion" -version = "0.3.5" +version = "0.3.7" license = "GNU-3.0" description = "" readme = "README.md" @@ -60,7 +60,7 @@ mypy = "^1.11.2" autotyping = "^24.3.0" [tool.bumpver] -current_version = "0.3.5" +current_version = "0.3.7" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "Bump version {old_version} -> {new_version}" commit = true