From 68168ac2a016fb546423a3e89f8ad7269ef3b395 Mon Sep 17 00:00:00 2001 From: Iscle Date: Wed, 20 Mar 2024 13:44:52 +0100 Subject: [PATCH] Fix reset command --- src/ViperContext.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ViperContext.cpp b/src/ViperContext.cpp index be1c6b6..287f284 100644 --- a/src/ViperContext.cpp +++ b/src/ViperContext.cpp @@ -562,12 +562,7 @@ int32_t ViperContext::handleCommand(uint32_t cmdCode, uint32_t cmdSize, void *pC return 0; } case EFFECT_CMD_RESET: { - if (replySize != sizeof(int32_t) || pReplyData == nullptr) { - VIPER_LOGE("EFFECT_CMD_RESET called with invalid replySize = %d, pReplyData = %p, expected replySize = %zu", replySize, pReplyData, sizeof(int32_t)); - return -EINVAL; - } viper.reset(); - SET(int32_t, pReplyData, 0); return 0; } case EFFECT_CMD_ENABLE: {