mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 18:11:35 +08:00
WIP: enable -Wfloat-conversion everywhere
This commit is contained in:
@@ -378,7 +378,7 @@ void uORB::DeviceMaster::showTop(char **topic_filter, int num_filters)
|
||||
|
||||
while (cur_node) {
|
||||
unsigned int num_msgs = cur_node->node->updates_available(cur_node->last_pub_msg_count);
|
||||
cur_node->pub_msg_delta = roundf(num_msgs / dt);
|
||||
cur_node->pub_msg_delta = (int)roundf(num_msgs / dt);
|
||||
cur_node->last_pub_msg_count += num_msgs;
|
||||
|
||||
total_size += cur_node->pub_msg_delta * cur_node->node->get_meta()->o_size;
|
||||
|
||||
Reference in New Issue
Block a user