From 74f61c07b945ae36b328f6a751eea0fbbdae1bdc Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Fri, 28 Aug 2015 22:27:48 -0700 Subject: [PATCH] rest lib tweak --- cmd/rest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rest.c b/cmd/rest.c index 08afd09..75b5b0b 100644 --- a/cmd/rest.c +++ b/cmd/rest.c @@ -14,7 +14,7 @@ #define MAX_REST 4 static RestClient restClient[MAX_REST]; static uint8_t restNum = 0xff; // index into restClient for next slot to allocate -#define REST_CB 0xdead0000 // fudge added to callback for arduino so we can detect problems +#define REST_CB 0xbeef0000 // fudge added to callback for arduino so we can detect problems extern uint8_t ICACHE_FLASH_ATTR UTILS_StrToIP(const char* str, void *ip); @@ -128,7 +128,7 @@ static void ICACHE_FLASH_ATTR tcpclient_recon_cb(void *arg, sint8 errType) { struct espconn *pCon = (struct espconn *)arg; RestClient* client = (RestClient *)pCon->reverse; - os_printf("REST $%d: conn reset\n", client-restClient); + os_printf("REST #%d: conn reset\n", client-restClient); } static void ICACHE_FLASH_ATTR