linux: sensors: illminance: Fix failure to open file resulting in success code being sent. (#18483)

This commit is contained in:
GavinDarkglider 2025-12-02 23:18:09 -08:00 committed by GitHub
parent d13b0bd5eb
commit e37f52d36a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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... */