X-Git-Url: http://git.smho.de/gw/?p=owTools.git;a=blobdiff_plain;f=src%2FowInterface.cpp;fp=src%2FowInterface.cpp;h=3da8460e7e97bc6d2638cafe6aca3df29ae8ded0;hp=b4d5d93bba0d0fd8fdd62531c0d801ff34d92dad;hb=f7b7cd722492679725b953a41717a3109c81813d;hpb=8b3ce8126a8bbc16822e939bc46f513e1c52b3d3 diff --git a/src/owInterface.cpp b/src/owInterface.cpp index b4d5d93..3da8460 100644 --- a/src/owInterface.cpp +++ b/src/owInterface.cpp @@ -38,6 +38,7 @@ #include #include "hexfile.h" +uint8_t owCC_44_Temp=0; #ifdef WIN void usleep(__int64 usec) @@ -118,6 +119,16 @@ uint16_t owInterface::calcCRC16(std::vector data) { int owInterface::testCRC16(std::vector data) { return calcCRC16(data)==0xB001; } + +int owInterface::testCRC16(std::vector data,uint16_t load) { + crc16=load; + for(uint8_t v:data) { + docrc16(v); + } + return crc16==0xB001; + +} + void owInterface::resetFlasher(uint64_t id) { // go back from Bootloader std::vector data;