[CC1101] Fixed typos in examples

This commit is contained in:
jgromes 2019-05-24 13:58:49 +02:00
parent 6a4634fbb2
commit 5378106866
5 changed files with 43 additions and 44 deletions

View file

@ -54,13 +54,13 @@ void loop() {
// print RSSI (Received Signal Strength Indicator)
// of the last received packet
Serial.print("[CC1101] RSSI:\t\t");
Serial.print(F("[CC1101] RSSI:\t\t"));
Serial.print(cc.getRSSI());
Serial.println(" dBm");
Serial.println(F(" dBm"));
// print LQI (Link Quality Indicator)
// of the last received packet, lower is better
Serial.print("[CC1101] LQI:\t\t");
Serial.print(F("[CC1101] LQI:\t\t"));
Serial.println(cc.getLQI());
} else if (state == ERR_CRC_MISMATCH) {

View file

@ -34,10 +34,10 @@ void setup() {
}
// set node address
// NOTE: Calling this method will autmatically enable
// NOTE: Calling this method will automatically enable
// address filtering. CC1101 also allows to set
// number of broadcast address (0/1/2).
// The following sets one brodcast address 0x00.
// The following sets one broadcast address 0x00.
// When setting two broadcast addresses, 0x00 and
// 0xFF will be used.
Serial.print(F("[CC1101] Setting node address ... "));
@ -89,13 +89,13 @@ void loop() {
// print RSSI (Received Signal Strength Indicator)
// of the last received packet
Serial.print("[CC1101] RSSI:\t\t");
Serial.print(F("[CC1101] RSSI:\t\t"));
Serial.print(cc.getRSSI());
Serial.println(" dBm");
Serial.println(F(" dBm"));
// print LQI (Link Quality Indicator)
// of the last received packet, lower is better
Serial.print("[CC1101] LQI:\t\t");
Serial.print(F("[CC1101] LQI:\t\t"));
Serial.println(cc.getLQI());
} else if (state == ERR_CRC_MISMATCH) {

View file

@ -53,7 +53,6 @@ void setup() {
// cc.sleep()
// cc.transmit();
// cc.receive();
// cc.scanChannel();
}
// flag to indicate that a packet was received
@ -98,21 +97,21 @@ void loop() {
if (state == ERR_NONE) {
// packet was successfully received
Serial.println("[CC1101] Received packet!");
Serial.println(F("[CC1101] Received packet!"));
// print data of the packet
Serial.print("[CC1101] Data:\t\t");
Serial.print(F("[CC1101] Data:\t\t"));
Serial.println(str);
// print RSSI (Received Signal Strength Indicator)
// of the last received packet
Serial.print("[CC1101] RSSI:\t\t");
Serial.print(F("[CC1101] RSSI:\t\t"));
Serial.print(cc.getRSSI());
Serial.println(" dBm");
Serial.println(F(" dBm"));
// print LQI (Link Quality Indicator)
// of the last received packet, lower is better
Serial.print("[CC1101] LQI:\t\t");
Serial.print(F("[CC1101] LQI:\t\t"));
Serial.println(cc.getLQI());
}

View file

@ -44,11 +44,11 @@ void loop() {
if (state == ERR_NONE) {
// the packet was successfully transmitted
Serial.println(" success!");
Serial.println(F(" success!"));
} else if (state == ERR_PACKET_TOO_LONG) {
// the supplied packet was longer than 255 bytes
Serial.println(" too long!");
Serial.println(F(" too long!"));
}

View file

@ -34,10 +34,10 @@ void setup() {
}
// set node address
// NOTE: Calling this method will autmatically enable
// NOTE: Calling this method will automatically enable
// address filtering. CC1101 also allows to set
// number of broadcast address (0/1/2).
// The following sets one brodcast address 0x00.
// The following sets one broadcast address 0x00.
// When setting two broadcast addresses, 0x00 and
// 0xFF will be used.
Serial.print(F("[CC1101] Setting node address ... "));
@ -80,11 +80,11 @@ void loop() {
if (state == ERR_NONE) {
// the packet was successfully transmitted
Serial.println(" success!");
Serial.println(F(" success!"));
} else if (state == ERR_PACKET_TOO_LONG) {
// the supplied packet was longer than 255 bytes
Serial.println(" too long!");
Serial.println(F(" too long!"));
}