No need to actually save non-existent EEPROM configuration

This commit is contained in:
Cacodemon345
2022-11-14 21:11:26 +06:00
parent 31a1cebed8
commit c9a8ce1356

View File

@@ -1453,6 +1453,7 @@ azt_close(void *p)
uint8_t checksum = 0x7f; uint8_t checksum = 0x7f;
int i; int i;
if (!azt2316a->opti) {
if (azt2316a->type == SB_SUBTYPE_CLONE_AZT1605_0X0C) { if (azt2316a->type == SB_SUBTYPE_CLONE_AZT1605_0X0C) {
fn = "azt1605.nvr"; fn = "azt1605.nvr";
} else if (azt2316a->type == SB_SUBTYPE_CLONE_AZT2316A_0X11) { } else if (azt2316a->type == SB_SUBTYPE_CLONE_AZT2316A_0X11) {
@@ -1473,6 +1474,7 @@ azt_close(void *p)
fclose(f); fclose(f);
} }
}
sb_close(azt2316a->sb); sb_close(azt2316a->sb);
@@ -1633,7 +1635,7 @@ static const device_config_t azt1605_config[] = {
}; };
static const device_config_t azt2316a_config[] = { static const device_config_t azt2316a_config[] = {
// clang-format off // clang-format off
{ {
.name = "codec", .name = "codec",
.description = "CODEC", .description = "CODEC",
@@ -1776,7 +1778,7 @@ static const device_config_t acermagic_s20_config[] = {
.default_int = 0 .default_int = 0
}, },
{ .name = "", .description = "", .type = CONFIG_END } { .name = "", .description = "", .type = CONFIG_END }
// clang-format on // clang-format on
}; };
const device_t azt2316a_device = { const device_t azt2316a_device = {