From 31b45f45f1f9a9124221735e1d1d3106831dead8 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 28 Mar 2012 13:21:03 +0200 Subject: [PATCH] defaults for updates by default add ALLOW_UPDATE to updates. --- ykpers.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ykpers.c b/ykpers.c index e96140b..d18be63 100644 --- a/ykpers.c +++ b/ykpers.c @@ -121,6 +121,10 @@ int ykp_configure_command(YKP_CONFIG *cfg, uint8_t command, YK_STATUS *st) break; case SLOT_UPDATE1: case SLOT_UPDATE2: + { + struct config_st *core_config = (struct config_st *) ykp_core_config(cfg); + core_config->extFlags |= EXTFLAG_ALLOW_UPDATE; + } case SLOT_SWAP: if (!((cfg->yk_major_version == 2 && cfg->yk_minor_version >= 3) || cfg->yk_major_version > 2)) { @@ -131,9 +135,9 @@ int ykp_configure_command(YKP_CONFIG *cfg, uint8_t command, YK_STATUS *st) default: ykp_errno = YKP_EINVCONFNUM; return 0; - } - cfg->command = command; - return 1; + } + cfg->command = command; + return 1; } int ykp_configure_for(YKP_CONFIG *cfg, int confnum, YK_STATUS *st) -- 2.39.5