[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:
parent
8d2a2b3e5a
commit
08a407e0f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue