Serial debug

pull/46/head
shaun feakes 2018-03-10 17:07:49 -06:00
parent c8480546cd
commit da3880b66c
3 changed files with 5 additions and 2 deletions

View File

@ -50,6 +50,8 @@ void log_packet(unsigned char* packet, int length)
const char* get_packet_type(unsigned char* packet, int length)
{
static char buf[15];
if (length <= 0 )
return "";
@ -68,7 +70,8 @@ const char* get_packet_type(unsigned char* packet, int length)
return "Probe";
break;
default:
return "Unknown";
sprintf(buf, "Unknown '0x%02hhx'\n", packet[PKT_CMD]);
return buf;
break;
}
}

Binary file not shown.

View File

@ -1,4 +1,4 @@
#define AQUALINKD_NAME "Aqualink Daemon"
#define AQUALINKD_VERSION "0.9b"
#define AQUALINKD_VERSION "0.9c"