mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 10:47:35 +08:00
tap_esc: fix argument ordering in memset
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user