Skip to content

Commit 9f57809

Browse files
committed
drv_ds1820_simple.c: reset all state variables on driver start
1 parent 944cbc8 commit 9f57809

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/driver/drv_ds1820_simple.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ void DS1820_driver_Init()
290290
{
291291
ds18_conversionPeriod = Tokenizer_GetArgIntegerDefault(1, 15);
292292
lastconv = 0;
293+
dsread = 0;
294+
ds18_family = 0;
293295
};
294296

295297
void DS1820_AppendInformationToHTTPIndexPage(http_request_t* request)

0 commit comments

Comments
 (0)