pypicoboot 1.1.3__py3-none-any.whl → 1.1.4__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.
picoboot/_version.py CHANGED
@@ -17,4 +17,4 @@
17
17
  */
18
18
  """
19
19
 
20
- __version__ = "1.1.3"
20
+ __version__ = "1.1.4"
picoboot/picoboot.py CHANGED
@@ -361,7 +361,12 @@ class PicoBoot:
361
361
  if transfer_length is None:
362
362
  transfer_length = 0 if data_out is None else len(data_out)
363
363
 
364
- token, header = self._build_command(cmd_id, args=args, transfer_length=transfer_length)
364
+ logger.debug(f"Preparing to send command {cmd_id} (0x{cmd_id:02X}) with args length {len(args)} and transfer_length {transfer_length}")
365
+ try:
366
+ token, header = self._build_command(cmd_id, args=args, transfer_length=transfer_length)
367
+ except ValueError as e:
368
+ logger.error(f"Error building command: {e}")
369
+ raise
365
370
  logger.debug(f"Sending command {cmd_id} (0x{cmd_id:02X}) with token {token} (0x{token:08X}) and transfer_length {transfer_length}")
366
371
 
367
372
  self.ep_out.write(header, timeout=timeout)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypicoboot
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Pico Boot for Python
5
5
  Home-page: https://github.com/polhenarejos/pypicoboot
6
6
  Author: Pol Henarejos
@@ -1,12 +1,12 @@
1
1
  picoboot/__init__.py,sha256=cQPxH_qPx7ph9SQ-Z4Jc2YCU3SKYnDta6wzU-Q65suc,72
2
- picoboot/_version.py,sha256=FjzHapAlay2lqwhKnlSSCkLPonTSJdSVFJvqRgarBRs,778
3
- picoboot/picoboot.py,sha256=GwL6DFVQSzdq7NvZE7zv_PT9mPG357j2GlHuPJoezus,24938
2
+ picoboot/_version.py,sha256=txKmvspbYF-uZ89KC9P5WlSJ9yxzTJtHQoWDGcqbpfc,778
3
+ picoboot/picoboot.py,sha256=1jmeh8XWI1P3rGqDAsGRUdNcI7DkEVeXov1Siz6Wn74,25206
4
4
  picoboot/picobootmonitor.py,sha256=3msEP2S8ZS7P8QVgKpq9Z9Rcud78XygmG1_0L_OZOvs,2443
5
5
  picoboot/utils.py,sha256=SjpAoPZrgyD9Ws7NIFVBHt0zPOb8Lpu2_lsmfeT2rXE,1083
6
6
  picoboot/core/__init__.py,sha256=fmoYRI4KbzhLjXblEs_H9zgdCs7oDuSKeNEG_-kMgYo,32
7
7
  picoboot/core/enums.py,sha256=YQnCtiX3XwG5RtAIhTmD37DMZMEGmcPIaTiwsW3ckxw,1211
8
8
  picoboot/tools/picotool.py,sha256=e2xjIxP5UZn9yfjxUWkJXq6KQHyw4YsGbuQbTauo0-Q,94
9
- pypicoboot-1.1.3.dist-info/METADATA,sha256=bZg7x1-8o35H9oivMY5YPpa5_qKH9ntA2ZGhuguBTjs,41111
10
- pypicoboot-1.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- pypicoboot-1.1.3.dist-info/top_level.txt,sha256=sjegZQO5-kQdFOXXJHm0P7Hg1Nw4Ri0WKHnRYDTsa4I,9
12
- pypicoboot-1.1.3.dist-info/RECORD,,
9
+ pypicoboot-1.1.4.dist-info/METADATA,sha256=zRIdNOpvKdzMObg200_OMOZlByW1ZdvCGqNwkMiTtQw,41111
10
+ pypicoboot-1.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ pypicoboot-1.1.4.dist-info/top_level.txt,sha256=sjegZQO5-kQdFOXXJHm0P7Hg1Nw4Ri0WKHnRYDTsa4I,9
12
+ pypicoboot-1.1.4.dist-info/RECORD,,