Revision c5901d9a scout/libscout/src/MetalDetectorControl.cpp

View differences:

scout/libscout/src/MetalDetectorControl.cpp
53 53
bool MetalDetectorControl::query()
54 54
{
55 55
    ::messages::query_metal_detector srv;
56
    bool metal;
57 56

  
58 57
    if (!query_client.call(srv))
59 58
    {
60 59
        ROS_ERROR("MetalDetectorControl query failed.");
61 60
    }
62
    metal = srv.response.metal;
63

  
64
    return metal;
61
    return srv.response.metal;
65 62
}

Also available in: Unified diff