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(){
46
46
47
47
if (buf[0 ] == 0x06 && buf[1 ] == 0x85 && buf[2 ] == size) {
48
48
// found my headers, size matches
49
+
50
+ calc_CS = buf[2 ]; // must be added after the header is received
51
+
49
52
for (int i = 0 ; i<size; i++){
50
53
calc_CS^=buf[i+3 ];
51
54
}
52
55
53
56
// compare CS
54
57
if (calc_CS == buf[size+3 ]){
55
58
// all good if here, warm up the photo copier
56
- memcpy (address,& buf+3 ,size);
59
+ memcpy (address,buf+3 ,size);
57
60
calc_CS = 0 ;
58
61
return true ;
59
62
}
Original file line number Diff line number Diff line change 1
1
/******************************************************************
2
- * EasyTransfer Arduino Library v2.0
2
+ * EasyTransfer Arduino Library v2.0.1
3
3
* details and example sketch:
4
4
* http://www.billporter.info/easytransfer-arduino-library/
5
5
*
25
25
* Now Arduino 1.0 compatible!
26
26
* 1.81
27
27
* 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.
32
33
*
33
34
*
34
35
* Limits of the Library
You can’t perform that action at this time.
0 commit comments