pymammotion 0.4.15__py3-none-any.whl → 0.4.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,9 +48,11 @@ class MammotionBaseDevice:
48
48
 
49
49
  missing_frames = self.mower.map.missing_root_hash_frame(hash_ack)
50
50
  if len(missing_frames) == 0:
51
- if len(self.mower.map.missing_hashlist(hash_ack.sub_cmd)) > 0:
52
- data_hash = self.mower.map.missing_hashlist(hash_ack.sub_cmd).pop()
53
- return await self.queue_command("synchronize_hash_data", hash_num=data_hash)
51
+ for sub_cmd in [0, 3]:
52
+ if len(self.mower.map.missing_hashlist(sub_cmd)) > 0:
53
+ # data_hash = self.mower.map.missing_hashlist(hash_ack.sub_cmd).pop()
54
+ for data_hash in self.mower.map.missing_hashlist(hash_ack.sub_cmd):
55
+ await self.queue_command("synchronize_hash_data", hash_num=data_hash)
54
56
  return
55
57
 
56
58
  for frame in missing_frames:
@@ -221,6 +223,10 @@ class MammotionBaseDevice:
221
223
  data_hash = self.mower.map.missing_hashlist().pop()
222
224
  await self.queue_command("synchronize_hash_data", hash_num=data_hash)
223
225
 
226
+ if len(self.mower.map.missing_hashlist(3)) > 0:
227
+ data_hash = self.mower.map.missing_hashlist().pop()
228
+ await self.queue_command("synchronize_hash_data", hash_num=data_hash)
229
+
224
230
  # sub_cmd 3 is job hashes??
225
231
  # sub_cmd 4 is dump location (yuka)
226
232
  # jobs list
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymammotion
3
- Version: 0.4.15
3
+ Version: 0.4.16
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: Michael Arthur
@@ -65,7 +65,7 @@ pymammotion/mammotion/commands/messages/video.py,sha256=YQGIxKx2prA0X01ovNmMkX6Y
65
65
  pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
67
67
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
68
- pymammotion/mammotion/devices/base.py,sha256=urFR2c_kZGoUJ6e0KPY7I5OU-sfrINxuLAIyML_jGAY,10482
68
+ pymammotion/mammotion/devices/base.py,sha256=QNYPqlChJMFy1L4DZqU33364-0ZOKnypjuixM_8QdCo,10810
69
69
  pymammotion/mammotion/devices/mammotion.py,sha256=Zz2tUIdGA-jFSHLM3aO8tBMvVl7sBIBiqC9Kg7f-lm8,13190
70
70
  pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=0c-HXawLQVHz28s0HKaSCNq4wmLWJZZ3ATDVnCXdSrc,19579
71
71
  pymammotion/mammotion/devices/mammotion_cloud.py,sha256=A1irPnfyb1xnhnnABUTZkJUm3-SYNbjEYRI5lDjPTI8,14757
@@ -117,7 +117,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
117
117
  pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
118
118
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
119
119
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
120
- pymammotion-0.4.15.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
121
- pymammotion-0.4.15.dist-info/METADATA,sha256=GZAoKgk5WReOioLw-xTy2aj5hk6eyr8kPo3FFQ_uMes,3834
122
- pymammotion-0.4.15.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
123
- pymammotion-0.4.15.dist-info/RECORD,,
120
+ pymammotion-0.4.16.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
121
+ pymammotion-0.4.16.dist-info/METADATA,sha256=KMWS5lCTeFvAGBcoKvQOo3PseQR0CX2E6w2rBQTj1Pg,3834
122
+ pymammotion-0.4.16.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
123
+ pymammotion-0.4.16.dist-info/RECORD,,