be a little more careful about fixing up calibration file path, although
it doesn't make any practical difference
This commit is contained in:
parent
ad40297bf2
commit
9825b8a1af
1 changed files with 7 additions and 1 deletions
|
@ -165,7 +165,13 @@ int _comedi_apply_parsed_calibration( comedi_t *dev, unsigned int subdev, unsign
|
|||
static void fixup_board_name( char *name )
|
||||
{
|
||||
while( ( name = strchr( name, '/' ) ) )
|
||||
if( name ) *name = '-';
|
||||
{
|
||||
if( name )
|
||||
{
|
||||
*name = '-';
|
||||
name++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
EXPORT_ALIAS_DEFAULT(_comedi_get_default_calibration_path,comedi_get_default_calibration_path,0.7.20);
|
||||
|
|
Loading…
Add table
Reference in a new issue