sigfox
Fork of Sigfox by
Diff: Sigfox.cpp
- Revision:
- 11:7e21590031dd
- Parent:
- 10:8ff45b9e136b
- Child:
- 12:43a4b8ba4635
--- a/Sigfox.cpp Tue Aug 01 11:03:17 2017 +0000
+++ b/Sigfox.cpp Sat Sep 09 17:21:03 2017 +0000
@@ -57,7 +57,7 @@
char buff[8+2];
_at->send("AT$I=10");
_at->read(buff, 8+2);
- memcpy(&ID[0],&buff[2],8-2);
+ memcpy(&ID[0],&buff[0],8);
return &ID[0];
}
@@ -65,7 +65,7 @@
char buff[16+2];
_at->send("AT$I=11");
_at->read(buff, 16+2);
- memcpy(&PAC[0],&buff[2],16-2);
+ memcpy(&PAC[0],&buff[0],16);
return &PAC[0];
}
