Skip to content

Commit b60cd23

Browse files
authored
Add files via upload
1 parent 0152d79 commit b60cd23

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

ELECHOUSE_CC1101_SRC_DRV.cpp

+3-9
Original file line numberDiff line numberDiff line change
@@ -971,12 +971,10 @@ void ELECHOUSE_CC1101::RegConfigSettings(void)
971971
****************************************************************/
972972
void ELECHOUSE_CC1101::SetTx(void)
973973
{
974-
if(trxstate!=1){
975974
SpiStrobe(CC1101_SIDLE);
976975
SpiStrobe(CC1101_STX); //start send
977976
trxstate=1;
978977
}
979-
}
980978
/****************************************************************
981979
*FUNCTION NAME:SetRx
982980
*FUNCTION :set CC1101 to receive state
@@ -985,11 +983,10 @@ void ELECHOUSE_CC1101::SetTx(void)
985983
****************************************************************/
986984
void ELECHOUSE_CC1101::SetRx(void)
987985
{
988-
if(trxstate!=2){
986+
SpiStrobe(CC1101_SIDLE);
989987
SpiStrobe(CC1101_SRX); //start receive
990988
trxstate=2;
991989
}
992-
}
993990
/****************************************************************
994991
*FUNCTION NAME:SetTx
995992
*FUNCTION :set CC1101 send data and change frequency
@@ -998,13 +995,11 @@ void ELECHOUSE_CC1101::SetRx(void)
998995
****************************************************************/
999996
void ELECHOUSE_CC1101::SetTx(float mhz)
1000997
{
1001-
setMHZ(mhz);
1002-
if(trxstate!=1){
1003998
SpiStrobe(CC1101_SIDLE);
999+
setMHZ(mhz);
10041000
SpiStrobe(CC1101_STX); //start send
10051001
trxstate=1;
10061002
}
1007-
}
10081003
/****************************************************************
10091004
*FUNCTION NAME:SetRx
10101005
*FUNCTION :set CC1101 to receive state and change frequency
@@ -1013,12 +1008,11 @@ void ELECHOUSE_CC1101::SetTx(float mhz)
10131008
****************************************************************/
10141009
void ELECHOUSE_CC1101::SetRx(float mhz)
10151010
{
1011+
SpiStrobe(CC1101_SIDLE);
10161012
setMHZ(mhz);
1017-
if(trxstate!=2){
10181013
SpiStrobe(CC1101_SRX); //start receive
10191014
trxstate=2;
10201015
}
1021-
}
10221016
/****************************************************************
10231017
*FUNCTION NAME:RSSI Level
10241018
*FUNCTION :Calculating the RSSI Level

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SmartRC-CC1101-Driver-Lib_V2.5.3
1+
# SmartRC-CC1101-Driver-Lib_V2.5.4
22

33
Note: Find out about the laws in your country.
44
Use at your own risk.
@@ -132,6 +132,15 @@ https://www.paypal.me/LittleSatan666
132132

133133
Thank You!
134134

135+
---------------------------------------------
136+
Changelog: SmartRC-CC1101-Driver-Lib_V2.5.4
137+
---------------------------------------------
138+
23.01.2021
139+
140+
Driver Library :No big frequency jumps over SetRx(freq); Possible. Fixed! Big thanks to NorthernMan54 for testing!
141+
142+
Driver Library :double-initaliesing option from V2.5.3 has been removed. Necessary for SetRx(freq); to use.
143+
135144
---------------------------------------------
136145
Changelog: SmartRC-CC1101-Driver-Lib_V2.5.3
137146
---------------------------------------------

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "git",
1212
"url": "https://github.com/LSatan/SmartRC-CC1101-Driver-Lib"
1313
},
14-
"version": "2.5.3",
14+
"version": "2.5.4",
1515
"frameworks": [
1616
"arduino"
1717
],

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SmartRC-CC1101-Driver-Lib
2-
version=2.5.3
2+
version=2.5.4
33
author=LSatan
44
maintainer=LSatan <[email protected]>
55
sentence=Driver for cc1101.

0 commit comments

Comments
 (0)