tests/driver_lm75: don't abort if alarm pin is not connected
This commit is contained in:
parent
fc457459bf
commit
79c67429a0
0
tests/driver_lm75/Makefile
Executable file → Normal file
0
tests/driver_lm75/Makefile
Executable file → Normal file
1
tests/driver_lm75/main.c
Executable file → Normal file
1
tests/driver_lm75/main.c
Executable file → Normal file
@ -121,7 +121,6 @@ int main(void) {
|
|||||||
/* Set the hysteresis and overtemperature shutdown */
|
/* Set the hysteresis and overtemperature shutdown */
|
||||||
if (lm75_set_temp_limits(dev, 24500, 29000, cb, NULL) != LM75_SUCCESS) {
|
if (lm75_set_temp_limits(dev, 24500, 29000, cb, NULL) != LM75_SUCCESS) {
|
||||||
puts("error setting Hyst and/or OS temps");
|
puts("error setting Hyst and/or OS temps");
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
lm75_check_set_temperature_limits(dev);
|
lm75_check_set_temperature_limits(dev);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user