From a8e28c7232dcc265ca369c933ba215b9c4e48881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 22 Jul 2016 14:12:09 +0200 Subject: [PATCH] tap_esc: fix argument ordering in memset --- src/drivers/tap_esc/tap_esc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/tap_esc/tap_esc.cpp b/src/drivers/tap_esc/tap_esc.cpp index cfc40430fa..5f57e9c655 100644 --- a/src/drivers/tap_esc/tap_esc.cpp +++ b/src/drivers/tap_esc/tap_esc.cpp @@ -234,7 +234,7 @@ TAP_ESC::init() EscPacket packet = {0xfe, sizeof(ConfigInfoBasicRequest), ESCBUS_MSG_ID_CONFIG_BASIC}; ConfigInfoBasicRequest &config = packet.d.reqConfigInfoBasic; - memset(&config, sizeof(ConfigInfoBasicRequest), 0); + memset(&config, 0, sizeof(ConfigInfoBasicRequest)); config.maxChannelInUse = _channels_count; /* Asign the id's to the ESCs to match the mux */