|
95 | 95 | XB3_MIN_FW_VERSION_FS_API_SUPPORT = { |
96 | 96 | XBeeProtocol.ZIGBEE: 0x10FF, |
97 | 97 | XBeeProtocol.DIGI_MESH: 0x30FF, |
98 | | - XBeeProtocol.RAW_802_15_4: 0x20FF |
| 98 | + XBeeProtocol.RAW_802_15_4: 0x20FF, |
| 99 | + # XBeeProtocol.BLE, specify so: |
| 100 | + # * FileSystemManager() is NOT supported until FS API frames are added |
| 101 | + XBeeProtocol.BLE: 0x40FF |
99 | 102 | } |
100 | 103 |
|
101 | 104 | # Update this values when the File System OTA support is deprecated |
102 | 105 | XB3_MAX_FW_VERSION_FS_OTA_SUPPORT = { |
103 | 106 | XBeeProtocol.ZIGBEE: 0x10FF, |
104 | 107 | XBeeProtocol.DIGI_MESH: 0x30FF, |
105 | 108 | XBeeProtocol.RAW_802_15_4: 0x20FF |
| 109 | + # XBeeProtocol.BLE, do not specify so: |
| 110 | + # * LocalXBeeFileSystemManager() is SUPPORTED |
| 111 | + # * update_remote_filesystem_image() is NOT supported (remotes do not exist) |
106 | 112 | } |
107 | 113 |
|
108 | 114 | _DEFAULT_BLOCK_SIZE = 64 |
@@ -3385,8 +3391,8 @@ def check_fs_support(xbee, min_fw_vers=None, max_fw_vers=None): |
3385 | 3391 | if not fw_version: |
3386 | 3392 | return True |
3387 | 3393 |
|
3388 | | - min_fw_version = min_fw_vers[xbee.get_protocol()] if min_fw_vers else None |
3389 | | - max_fw_version = max_fw_vers[xbee.get_protocol()] if max_fw_vers else None |
| 3394 | + min_fw_version = min_fw_vers.get(xbee.get_protocol(), None) if min_fw_vers else None |
| 3395 | + max_fw_version = max_fw_vers.get(xbee.get_protocol(), None) if max_fw_vers else None |
3390 | 3396 |
|
3391 | 3397 | version = utils.bytes_to_int(fw_version) |
3392 | 3398 | if min_fw_version and version < min_fw_version: |
|
0 commit comments