From 5e0abbae91d1f08c7daa8696f9ed3646b003ede2 Mon Sep 17 00:00:00 2001 From: Sharvil Nanavati Date: Sun, 7 Dec 2014 14:15:09 -0800 Subject: [PATCH] Add RFCOMM result code string for an unspecified error. The code enumerating the list of possible error codes is not a C enum and the original authors skipped a value. As a result, the table mapping error codes to strings is off by one after that skipped value. I'm inserting a string for that error code even though it's not defined so the strings line up with the actual error. --- stack/rfcomm/port_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stack/rfcomm/port_api.c b/stack/rfcomm/port_api.c index abc5b89c0..7b746e43f 100644 --- a/stack/rfcomm/port_api.c +++ b/stack/rfcomm/port_api.c @@ -54,6 +54,7 @@ static const char *result_code_strings[] = { "No memory", "No resources", "Bad BD address", + "Unspecified error", "Bad handle", "Not opened", "Line error", -- 2.11.0