Skip to content

Commit

Permalink
Fix reset command
Browse files Browse the repository at this point in the history
  • Loading branch information
iscle committed Mar 20, 2024
1 parent 8107aee commit 68168ac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/ViperContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 68168ac

Please sign in to comment.