联机请求显示后台错误
diff --git a/supwisdom/sp_communicate.c b/supwisdom/sp_communicate.c
index 79b5601..fab5b44 100644
--- a/supwisdom/sp_communicate.c
+++ b/supwisdom/sp_communicate.c
@@ -36,6 +36,8 @@
   uint8 temp[sizeof(sp_protocol_response_t)];
   tick = sp_get_ticker();
   MEMCLEAR(temp,sizeof temp);
+  memset(pos->errmsg,0,32);
+  pos->errmsglen = 0;
   while(1)
   {
 
@@ -57,6 +59,11 @@
           if(MEMCMP((uint8*)resp +datalen,crc,2) == 0)
           {
             MEMCLEAR(&(pos->last_comm_status), sizeof(sp_comm_status_t));
+            if(resp->retcode)
+            {
+              MEMCPY(pos->errmsg,resp->data,32);
+              pos->errmsglen = resp->datalen;
+            }
             return resp->retcode;
           }
         }