From 4aa7bff8c6833dfe82ca357d5900ae4be12f147a Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 21 Apr 2021 12:02:21 -0700 Subject: [PATCH] rc_input:Use inttypes --- src/drivers/rc_input/RCInput.cpp | 6 +++--- src/drivers/rc_input/RCInput.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/rc_input/RCInput.cpp b/src/drivers/rc_input/RCInput.cpp index 46518a9a5c..5ed5066cd4 100644 --- a/src/drivers/rc_input/RCInput.cpp +++ b/src/drivers/rc_input/RCInput.cpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012-2020 PX4 Development Team. All rights reserved. + * Copyright (c) 2012-2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -778,11 +778,11 @@ int RCInput::custom_command(int argc, char *argv[]) int RCInput::print_status() { - PX4_INFO("Max update rate: %i Hz", 1000000 / _current_update_interval); + PX4_INFO("Max update rate: %u Hz", 1000000 / _current_update_interval); if (_device[0] != '\0') { PX4_INFO("UART device: %s", _device); - PX4_INFO("UART RX bytes: %u", _bytes_rx); + PX4_INFO("UART RX bytes: %" PRIu32, _bytes_rx); } PX4_INFO("RC state: %s: %s", _rc_scan_locked ? "found" : "searching for signal", RC_SCAN_STRING[_rc_scan_state]); diff --git a/src/drivers/rc_input/RCInput.hpp b/src/drivers/rc_input/RCInput.hpp index e4aaac4108..652bd72e00 100644 --- a/src/drivers/rc_input/RCInput.hpp +++ b/src/drivers/rc_input/RCInput.hpp @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (c) 2012-2019 PX4 Development Team. All rights reserved. + * Copyright (c) 2012-2019, 2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions