File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,17 @@ boolean EasyTransferVirtualWire::receiveData(){
4646
4747 if (buf[0 ] == 0x06 && buf[1 ] == 0x85 && buf[2 ] == size) {
4848 // found my headers, size matches
49+
50+ calc_CS = buf[2 ]; // must be added after the header is received
51+
4952 for (int i = 0 ; i<size; i++){
5053 calc_CS^=buf[i+3 ];
5154 }
5255
5356 // compare CS
5457 if (calc_CS == buf[size+3 ]){
5558 // all good if here, warm up the photo copier
56- memcpy (address,& buf+3 ,size);
59+ memcpy (address,buf+3 ,size);
5760 calc_CS = 0 ;
5861 return true ;
5962 }
Original file line number Diff line number Diff line change 11/******************************************************************
2- * EasyTransfer Arduino Library v2.0
2+ * EasyTransfer Arduino Library v2.0.1
33* details and example sketch:
44* http://www.billporter.info/easytransfer-arduino-library/
55*
2525* Now Arduino 1.0 compatible!
2626* 1.81
2727* Made it more cross compatible. Man, They really made us work for this one.
28- * 2.0
29- * Combined SoftEasyTransfer with the other two to make everything one repo
30- * Added EasyTransferVirtualWire library for use with Virtual Wire and cheap radios.
31- * UNTESTED!
28+ * 2.0
29+ * Combined SoftEasyTransfer with the other two to make everything one repo
30+ * Added EasyTransferVirtualWire library for use with Virtual Wire and cheap radios.
31+ * 2.0.1
32+ * VirtualWire version tested by garth@netram, bugs fixed.
3233*
3334*
3435* Limits of the Library
You can’t perform that action at this time.
0 commit comments