Добавить канал TMS в каталог прошивок
This commit is contained in:
@@ -142,7 +142,7 @@ class FirmwareCatalogClient(private val userAgent: String) {
|
||||
require(fileName.matches(Regex("[A-Za-zА-Яа-яЁё0-9._ -]+\\.(bin|hex)", RegexOption.IGNORE_CASE))) {
|
||||
"Некорректное имя файла прошивки №${index + 1}"
|
||||
}
|
||||
require(transport in setOf("rs485", "can", "stm32")) { "Некорректный канал прошивки №${index + 1}" }
|
||||
require(transport in setOf("rs485", "can", "stm32", "tms")) { "Некорректный канал прошивки №${index + 1}" }
|
||||
val baseAddress = row.opt("baseAddress")?.takeUnless { it == JSONObject.NULL }?.toString()?.let(::parseAddress)
|
||||
add(FirmwareRelease(
|
||||
product, versionName, versionCode, imageUrl, fileName, sha256,
|
||||
|
||||
Reference in New Issue
Block a user