Skip to content

Commit

Permalink
MultirotorMixer: allow for longer mixer geometry names (16 instead of 8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkueng authored and davids5 committed Feb 13, 2020
1 parent 73bd90d commit 8020e82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/mixer/MultirotorMixer/MultirotorMixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ MultirotorMixer *
MultirotorMixer::from_text(Mixer::ControlCallback control_cb, uintptr_t cb_handle, const char *buf, unsigned &buflen)
{
MultirotorGeometry geometry = MultirotorGeometry::MAX_GEOMETRY;
char geomname[8];
char geomname[16];
int s[4];
int used;

Expand All @@ -121,7 +121,7 @@ MultirotorMixer::from_text(Mixer::ControlCallback control_cb, uintptr_t cb_handl
return nullptr;
}

if (sscanf(buf, "R: %7s %d %d %d %d%n", geomname, &s[0], &s[1], &s[2], &s[3], &used) != 5) {
if (sscanf(buf, "R: %15s %d %d %d %d%n", geomname, &s[0], &s[1], &s[2], &s[3], &used) != 5) {
debug("multirotor parse failed on '%s'", buf);
return nullptr;
}
Expand Down

0 comments on commit 8020e82

Please sign in to comment.