Browse Source

tap_esc: fix argument ordering in memset

sbg
Beat Küng 9 years ago committed by Lorenz Meier
parent
commit
a8e28c7232
  1. 2
      src/drivers/tap_esc/tap_esc.cpp

2
src/drivers/tap_esc/tap_esc.cpp

@ -234,7 +234,7 @@ TAP_ESC::init() @@ -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 */

Loading…
Cancel
Save