[Positioner] EvAAL: fix AOI printing

The AOI (Area Of Interest) number must be printed only if greater than
zero.
This commit is contained in:
Matteo Cypriani 2012-07-10 16:13:15 +02:00
parent db63c88a45
commit 307da87760
1 changed files with 6 additions and 2 deletions

View File

@ -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() ;