From 1341b3d80eb79b337af92fd488c8365abf88aeb4 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Mon, 11 Jul 2022 19:14:39 +0300 Subject: [PATCH] ggwave : update comments with proper ggwave_decode example --- include/ggwave/ggwave.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ggwave/ggwave.h b/include/ggwave/ggwave.h index 5cdd01c..7690cc6 100644 --- a/include/ggwave/ggwave.h +++ b/include/ggwave/ggwave.h @@ -263,6 +263,7 @@ extern "C" { // // int ret = ggwave_decode(instance, waveform, samplesPerFrame*sizeOfSample_bytes, payload); // if (ret > 0) { + // payload[ret] = 0; // null terminate the string // printf("Received payload: '%s'\n", payload); // } // }