| 308 | } |
| 309 | |
| 310 | uint32_t launcherPartitionAlignment(uint8_t type, uint8_t subtype) { |
| 311 | if (type == kTypeApp) return LAUNCHER_APP_PARTITION_ALIGNMENT; |
| 312 | if (type == kTypeData && |
| 313 | (subtype == ESP_PARTITION_SUBTYPE_DATA_FAT || subtype == ESP_PARTITION_SUBTYPE_DATA_SPIFFS || |
| 314 | subtype == ESP_PARTITION_SUBTYPE_DATA_LITTLEFS)) { |
| 315 | return LAUNCHER_APP_PARTITION_ALIGNMENT; |
| 316 | } |
| 317 | return LAUNCHER_FLASH_SECTOR_SIZE; |
| 318 | } |
| 319 | |
| 320 | bool launcherPartitionCompact(LauncherPartitionTable &table, String *error) { |
| 321 | uint32_t flashSize = table.flashSize; |
no outgoing calls
no test coverage detected