Project

General

Profile

Revision 360e3b6c

ID360e3b6cd161e3ed61055ceb0fb478807c7c52dd

Added by Thomas Mullins about 11 years ago

Fixed segfault from LinesensorControl when the service call failed

View differences:

scout/libscout/src/LinesensorControl.cpp
74 74

  
75 75
    vector<uint32_t> readings = query();
76 76

  
77
    if (readings.size() < 8)
78
    {
79
        return last_ret;
80
    }
81

  
77 82
    for (int i = 0; i < 8; i++)
78 83
    {
79 84
        total_read += readings[i];

Also available in: Unified diff