From d6ea08a742ef818a5ef07b2eefadfd7ea1af6e2f Mon Sep 17 00:00:00 2001
From: schneider <schneider@blinkenlichts.net>
Date: Mon, 15 Jun 2020 16:31:42 +0200
Subject: [PATCH] fix(ble): Print warning when looging unsup. type

---
 epicardium/ble/ble.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/epicardium/ble/ble.c b/epicardium/ble/ble.c
index c9faf5287..cb613ddc4 100644
--- a/epicardium/ble/ble.c
+++ b/epicardium/ble/ble.c
@@ -115,7 +115,8 @@ void WsfPDump(wsfPDumpType_t pdType, uint16_t length, uint8_t *pBuffer)
 			type      = 0x02;
 			break;
 		default:
-			break;
+			LOG_WARN("ble", "Unknown packet type to be logged");
+			return;
 		}
 
 		uint64_t tick         = xTaskGetTickCount();
-- 
GitLab