[Positioning] Fix reading csv calibration file

Add uint16_t into inputcsv to fix read type packet.
The uint8_t is detected as a char.
This commit is contained in:
Florian Taillard 2011-04-18 16:31:10 +02:00
parent 8d2a2b3e5a
commit 08a407e0f3
1 changed files with 3 additions and 1 deletions

View File

@ -45,12 +45,14 @@ const Request& InputCSV::get_next_request()
// Read request type
uint8_t type ;
if (! file.read_field(type))
uint16_t type_r ;
if (! file.read_field(type_r))
{
// Wrong number of fields: blank current request
current_request->clear() ;
return *current_request ;
}
type = type_r ;
current_request->set_type(type) ;
// Read Timestamp field