int owDeviceDS18B20::convertAll() {
std::vector<uint8_t> sp;
- sp.push_back(0x44);
- Communicate(&sp, 1, 0);
+ //sp.push_back(0x44);
+ //communicate(&sp, 1, 0); ///########################################################
usleep(750000);
if (readScratchpad(&sp)) {
int owDeviceDS2438::convertAll() {
for(int k=0;k<owi->maxrepeat;k++) {
std::vector<uint8_t> 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;
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;
}
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;
}