X-Git-Url: http://git.smho.de/gw/?p=owTools.git;a=blobdiff_plain;f=src%2FowDevice.cpp;fp=src%2FowDevice.cpp;h=60a8e99fb013190b51e0ec68aaf5ed5f84d0b15c;hp=e710102a437195c1bab59b906ce690bdbf63e8cc;hb=17ea6dc449cad650a4c783446ab048c12e44c666;hpb=03de69ffeb1f25ccbc7757c9600c38316c262a19 diff --git a/src/owDevice.cpp b/src/owDevice.cpp index e710102..60a8e99 100755 --- a/src/owDevice.cpp +++ b/src/owDevice.cpp @@ -231,8 +231,8 @@ int owDeviceDS18B20::readScratchpad(std::vector *sp) { int owDeviceDS18B20::convertAll() { std::vector sp; - sp.push_back(0x44); - Communicate(&sp, 1, 0); + //sp.push_back(0x44); + //communicate(&sp, 1, 0); ///######################################################## usleep(750000); if (readScratchpad(&sp)) { @@ -375,8 +375,8 @@ inline int16_t ow_fconvert(uint8_t b1, uint16_t b2) { int owDeviceDS2438::convertAll() { for(int k=0;kmaxrepeat;k++) { std::vector sp; - sp.push_back(0x44); - Communicate(&sp, 1, 0); + //sp.push_back(0x44); + //Communicate(&sp, 1, 0);///######################################################## if (owi->log->last()>=OWLOG_ERROR) continue; usleep(100000); if (setConfigByte(0x08)<=0) continue; @@ -457,6 +457,8 @@ void owDeviceDS2450::readMemory(uint8_t addr,std::vector *sp) { return; } if (!owi->testCRC16(cl)) { + for (uint8_t v :cl) printf("%02X ",v); + printf("\n"); owi->log->set(OWLOG_ERROR,"CRC ERROR Reading Memory of DS2450"); return; } @@ -503,6 +505,8 @@ void owDeviceDS2450::convert(uint8_t mask, uint8_t preset) { cl.push_back(preset); Communicate(&cl, 3, 2); if (!owi->testCRC16(cl)) { + for (uint8_t v :cl) printf("%02X ",v); + printf("\n"); owi->log->set(OWLOG_ERROR,"CRC ERROR Convert Command of DS2450"); return; }