From bf0e6a5eb0dd6ec9ebf1d4fb2cf2f804de946f44 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 25 Dec 2021 23:19:33 +0100 Subject: lm75: overtemperature threshold and hysteresis are _signed_ 8bit ints --- include/driver/lm75.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/driver/lm75.h b/include/driver/lm75.h index 357be71..c1a9ddf 100644 --- a/include/driver/lm75.h +++ b/include/driver/lm75.h @@ -2,6 +2,8 @@ * Copyright 2020 Daniel Friesel * * SPDX-License-Identifier: BSD-2-Clause + * + * Driver for LM75B Digital Temperature Sensor and Thermal Watchdog. */ #ifndef LM75_H #define LM75_H @@ -19,8 +21,8 @@ class LM75 { float getTemp(); unsigned int getOS(); unsigned int getHyst(); - void setOS(unsigned char os); - void setHyst(unsigned char hyst); + void setOS(signed char os); + void setHyst(signed char hyst); void init(); void shutdown(); }; -- cgit v1.2.3