Skip to content

Commit 3ab8e9a

Browse files
committed
VirtualWire version tested, bugs fixed.
Signed-off-by: Bill Porter <madsci1016@gmail.com>
1 parent afd2bb3 commit 3ab8e9a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

EasyTransferVirtualWire/EasyTransferVirtualWire.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

README.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
*
@@ -25,10 +25,11 @@
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

0 commit comments

Comments
 (0)