Skip to content

Commit e37f52d

Browse files
linux: sensors: illminance: Fix failure to open file resulting in success code being sent. (#18483)
1 parent d13b0bd commit e37f52d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

input/common/linux_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static double linux_read_illuminance_sensor(const linux_illuminance_sensor_t *se
320320
if (!in_illuminance_input)
321321
{
322322
RARCH_ERR("Failed to open \"%s\".\n", sensor->path);
323-
return 0.0;
323+
return -1.0;
324324
}
325325

326326
/* Read the illuminance value from the file. If that fails... */

0 commit comments

Comments
 (0)