[Positioner] EvAAL: fix AOI printing
The AOI (Area Of Interest) number must be printed only if greater than zero.
This commit is contained in:
parent
db63c88a45
commit
307da87760
|
@ -94,8 +94,12 @@ void OutputTCPSocketEvAAL::write(const Result &result)
|
|||
<< "OwlPS "
|
||||
<< position.get_x() << ' '
|
||||
<< position.get_y() << ' '
|
||||
<< static_cast<uint64_t>(request_time) << ' '
|
||||
<< area_of_interest << '\n' ;
|
||||
<< static_cast<uint64_t>(request_time) << ' ' ;
|
||||
|
||||
if (area_of_interest > 0)
|
||||
str << area_of_interest ;
|
||||
|
||||
str << '\n' ;
|
||||
|
||||
if (send_data(str.str()))
|
||||
acknowledge() ;
|
||||
|
|
Loading…
Reference in New Issue