Commit 05eef866 authored by Ondra's avatar Ondra
Browse files

remove transmiting L if no gps

reading multiple bytes from gps
parent d0d7e392
......@@ -46,7 +46,8 @@
#define TONE_SPACING 146 // ~1.46 Hz
#define WSPR_CTC 10672 // CTC value for WSPR
#define SYMBOL_COUNT WSPR_SYMBOL_COUNT
#define CORRECTION 0
//#define CORRECTION 0
#define CORRECTION 30000
//#define CORRECTION 360000 // 7 MHz
//#define CORRECTION 160000 // 7 MHz
......@@ -274,12 +275,12 @@ int getTemp()
void setup()
{
// Use the Arduino's on-board LED as a keying indicator.
// pinMode(TX_LED_PIN, OUTPUT);
// pinMode(SYNC_LED_PIN, OUTPUT);
pinMode(TX_LED_PIN, OUTPUT);
pinMode(SYNC_LED_PIN, OUTPUT);
analogReference(INTERNAL);
// digitalWrite(TX_LED_PIN, LOW);
// digitalWrite(SYNC_LED_PIN, LOW);
digitalWrite(TX_LED_PIN, LOW);
digitalWrite(SYNC_LED_PIN, LOW);
Serial.begin(9600);
......@@ -336,8 +337,7 @@ void loop()
temperature = (getTemp() - 324.31) / 1.22;
if (Serial.available())
while (Serial.available())
{
//processSyncMessage();
//Serial.println(timeStatus());
......@@ -364,9 +364,8 @@ void loop()
}
else
{
// digitalWrite(SYNC_LED_PIN, LOW); // LED off if needs refresh
send('L');
digitalWrite(SYNC_LED_PIN, LOW); // LED off if needs refresh
//send('L');
}
// Trigger every 2th minute
// WSPR should start on the 1st second of the minute, but there's a slight delay
......@@ -734,6 +733,3 @@ void sendmsg(char *str)
send(*str++) ;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment