mirror of
https://github.com/libretro/RetroArch.git
synced 2025-12-28 05:24:00 +00:00
linux: sensors: illminance: Fix failure to open file resulting in success code being sent. (#18483)
This commit is contained in:
parent
d13b0bd5eb
commit
e37f52d36a
@ -320,7 +320,7 @@ static double linux_read_illuminance_sensor(const linux_illuminance_sensor_t *se
|
||||
if (!in_illuminance_input)
|
||||
{
|
||||
RARCH_ERR("Failed to open \"%s\".\n", sensor->path);
|
||||
return 0.0;
|
||||
return -1.0;
|
||||
}
|
||||
|
||||
/* Read the illuminance value from the file. If that fails... */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user