From 06cb3f24eddaa391e0160e99d884602e132bd957 Mon Sep 17 00:00:00 2001 From: nick6x Date: Thu, 11 Aug 2016 20:01:02 -0700 Subject: [PATCH] Resolve compiling issues in Examples. --- examples/AX25Receive/AX25Receive.ino | 3 --- examples/CrystalCalibration/CrystalCalibration.ino | 2 +- examples/Gauges/Gauges.ino | 2 +- examples/JustTransmit/JustTransmit.ino | 2 +- examples/Parrot/Parrot.ino | 2 +- examples/SSTV/SSTV.ino | 2 +- 6 files changed, 5 insertions(+), 8 deletions(-) diff --git a/examples/AX25Receive/AX25Receive.ino b/examples/AX25Receive/AX25Receive.ino index 7b9cc76..a2ac961 100644 --- a/examples/AX25Receive/AX25Receive.ino +++ b/examples/AX25Receive/AX25Receive.ino @@ -29,7 +29,6 @@ void setup() { radio.initialize(); radio.frequency(145010); radio.setSQOff(); - I2Cdev::writeWord(A1846S_DEV_ADDR_SENLOW, 0x44, 0b11111111); Serial.println(F("Frequency")); delay(100); Serial.print(F("Squelch(H/L): ")); @@ -37,8 +36,6 @@ void setup() { Serial.print(F(" / ")); Serial.println(radio.getSQLoThresh()); radio.setModeReceive(); - Serial.print(F("RX? ")); - Serial.println(radio.getRX()); Serial.println(F("DDS Start")); delay(100); dds.start(); diff --git a/examples/CrystalCalibration/CrystalCalibration.ino b/examples/CrystalCalibration/CrystalCalibration.ino index 175d5f5..0b9ce48 100644 --- a/examples/CrystalCalibration/CrystalCalibration.ino +++ b/examples/CrystalCalibration/CrystalCalibration.ino @@ -28,7 +28,7 @@ void setup() { radio.initialize(); radio.setRfPower(0); - radio.setFrequency(145050); + radio.frequency(145050); dds.start(); dds.setFrequency(1200); diff --git a/examples/Gauges/Gauges.ino b/examples/Gauges/Gauges.ino index 5226796..e288445 100755 --- a/examples/Gauges/Gauges.ino +++ b/examples/Gauges/Gauges.ino @@ -41,7 +41,7 @@ void setup() { int result = radio.testConnection(); Serial.println(result,DEC); radio.initialize(); - radio.setFrequency(446000); + radio.frequency(446000); radio.setModeReceive(); Serial.println("Entering gauges..."); tone(9,1000); diff --git a/examples/JustTransmit/JustTransmit.ino b/examples/JustTransmit/JustTransmit.ino index fd2c1af..a2d2dbe 100644 --- a/examples/JustTransmit/JustTransmit.ino +++ b/examples/JustTransmit/JustTransmit.ino @@ -28,7 +28,7 @@ void setup() { Serial.println("Setting radio to its defaults.."); radio.initialize(); radio.setRfPower(0); - radio.setChanMode(3); + //radio.setChanMode(3); } void loop() { diff --git a/examples/Parrot/Parrot.ino b/examples/Parrot/Parrot.ino index abbbc3e..67a210d 100755 --- a/examples/Parrot/Parrot.ino +++ b/examples/Parrot/Parrot.ino @@ -37,7 +37,7 @@ void setup() { // int result = radio.testConnection(); radio.initialize(); - radio.setFrequency(446000); + radio.frequency(446000); setPwmFrequency(9, 1); } diff --git a/examples/SSTV/SSTV.ino b/examples/SSTV/SSTV.ino index 44ec29e..e28e81c 100755 --- a/examples/SSTV/SSTV.ino +++ b/examples/SSTV/SSTV.ino @@ -51,7 +51,7 @@ void setup() { void loop() { - if(radio.waitForChannel(1000,2000)) { // Wait forever for calling frequency to open, then wait 2 seconds for breakers + if(radio.waitForChannel(1000,2000, rssi)) { // Wait forever for calling frequency to open, then wait 2 seconds for breakers radio.setModeTransmit(); // Turn on the transmitter delay(250); // Wait a moment radio.SSTVTestPattern(MARTIN1); // send a MARTIN1 test pattern