cppcheck fixes

This commit is contained in:
iceman1001 committed 2022-01-06 21:00:16 +01:00
1 parent edb5f18b3a
commit 05576ba06b
10 files changed
+34 -54

No files matched your search

+2 -3
View File
@@ -36,9 +36,8 @@ int g_DemodClock = 0;
static int CmdHelp(const char *Cmd);
//set the g_DemodBuffer with given array ofq binary (one bit per byte)
//by marshmellow
void setDemodBuff(uint8_t *buff, size_t size, size_t start_idx) {
// set the g_DemodBuffer with given array ofq binary (one bit per byte)
void setDemodBuff(const uint8_t *buff, size_t size, size_t start_idx) {
if (buff == NULL) return;
if (size > MAX_DEMOD_BUF_LEN - start_idx)