mirror of https://github.com/ArduPilot/ardupilot
Correct bug in CLI log "enable all" command.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2733 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
a7a4f999e3
commit
0df8daeaed
|
@ -165,6 +165,7 @@ select_logs(uint8_t argc, const Menu::arg *argv)
|
||||||
//
|
//
|
||||||
if (!strcasecmp_P(argv[1].str, PSTR("all"))) {
|
if (!strcasecmp_P(argv[1].str, PSTR("all"))) {
|
||||||
bits = ~(bits = 0);
|
bits = ~(bits = 0);
|
||||||
|
bits = bits ^ MASK_LOG_SET_DEFAULTS;
|
||||||
} else {
|
} else {
|
||||||
#define TARG(_s) if (!strcasecmp_P(argv[1].str, PSTR(#_s))) bits |= MASK_LOG_ ## _s
|
#define TARG(_s) if (!strcasecmp_P(argv[1].str, PSTR(#_s))) bits |= MASK_LOG_ ## _s
|
||||||
TARG(ATTITUDE_FAST);
|
TARG(ATTITUDE_FAST);
|
||||||
|
|
Loading…
Reference in New Issue