There was an error while loading. Please reload this page.
1 parent 0ea5daf commit 7c19f0eCopy full SHA for 7c19f0e
examples/Slave/DS18B20/DS18B20.ino
@@ -50,7 +50,8 @@ void setup()
50
{
51
// Random ROM identity code
52
ROM[0] = FAMILY_CODE;
53
- for (size_t i = 1; i < OWI::ROM_MAX; i++) ROM[i] = rand();
+ uint8_t* p = (uint8_t*) 0;
54
+ for (size_t i = 1; i < OWI::ROM_MAX; i++) ROM[i] = *p++;
55
}
56
57
// This sketch uses approx. 1900 bytes (Uno) of program storage space,
0 commit comments