From 52f9c721d3f7201ca2f8ad6461cbb5fd8e50d822 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 5 Aug 2010 22:13:51 -0500 Subject: core: add SPC lock error --- libqcdm/src/commands.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libqcdm/src/commands.c') diff --git a/libqcdm/src/commands.c b/libqcdm/src/commands.c index 11a1a38b..e4918617 100644 --- a/libqcdm/src/commands.c +++ b/libqcdm/src/commands.c @@ -119,6 +119,8 @@ bin2hexstr (const guint8 *bytes, int len) return result; } +/**********************************************************************/ + static gboolean check_command (const char *buf, gsize len, guint8 cmd, gsize min_len, GError **error) { @@ -154,6 +156,11 @@ check_command (const char *buf, gsize len, guint8 cmd, gsize min_len, GError **e "DM command %d not allowed in the current device mode", cmd); return FALSE; + case DIAG_CMD_BAD_SPC_MODE: + g_set_error (error, QCDM_COMMAND_ERROR, QCDM_COMMAND_SPC_LOCKED, + "DM command %d not allowed because the Service Programming Code is locked", + cmd); + return FALSE; default: break; } -- cgit v1.2.3-70-g09d2