GCS_MAVLink: Console output can be disabled

This commit is contained in:
murata 2022-03-21 18:26:58 +09:00 committed by Andrew Tridgell
parent d478a40edc
commit 970af16251
2 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,9 @@ const struct GCS_MAVLINK::stream_entries GCS_MAVLINK::all_stream_entries[] {};
void GCS_Dummy::send_textv(MAV_SEVERITY severity, const char *fmt, va_list arg_list, uint8_t dest_bitmask)
{
#if !APM_BUILD_TYPE(APM_BUILD_Replay)
hal.console->printf("TOGCS: ");
DEV_PRINTF("TOGCS: ");
hal.console->vprintf(fmt, arg_list);
hal.console->printf("\n");
DEV_PRINTF("\n");
#else
::printf("TOGCS: ");
::vprintf(fmt, arg_list);

View File

@ -134,7 +134,7 @@ void GCS_MAVLINK::load_signing_key(void)
}
mavlink_status_t *status = mavlink_get_channel_status(chan);
if (status == nullptr) {
hal.console->printf("Failed to load signing key - no status");
DEV_PRINTF("Failed to load signing key - no status");
return;
}
memcpy(signing.secret_key, key.secret_key, 32);