Significantly reduce stack size needed for calibration in commander

This commit is contained in:
Lorenz Meier 2016-04-22 09:03:57 +02:00
parent f2c31ec4da
commit 4077616264

View File

@ -447,13 +447,13 @@ calibrate_return calibrate_from_orientation(orb_advert_t *mavlink_log_pub,
}
/* inform user which orientations are still needed */
char pendingStr[256];
char pendingStr[80];
pendingStr[0] = 0;
for (unsigned int cur_orientation=0; cur_orientation<detect_orientation_side_count; cur_orientation++) {
if (!side_data_collected[cur_orientation]) {
strcat(pendingStr, " ");
strcat(pendingStr, detect_orientation_str((enum detect_orientation_return)cur_orientation));
strncat(pendingStr, " ", sizeof(pendingStr));
strncat(pendingStr, detect_orientation_str((enum detect_orientation_return)cur_orientation), sizeof(pendingStr));
}
}
calibration_log_info(mavlink_log_pub, "[cal] pending:%s", pendingStr);