Skip to content

Commit 4f0cfa8

Browse files
V1.7.07 - Updates
- Eliminated all warnings under PlatformIO compilation for all boards
1 parent b3c921f commit 4f0cfa8

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

Software/Arduino code/OpenAstroTracker/InterruptCallback.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ bool InterruptCallback::setInterval(float intervalMs, interrupt_callback_p callb
4646

4747
// This timer library requires microsecond interval definitions
4848
interruptHandler.setInterval(1000.0f * intervalMs, esp8266callback);
49+
50+
return true;
4951
}
5052

5153
void InterruptCallback::start()
@@ -89,6 +91,7 @@ bool InterruptCallback::setInterval(float intervalMs, interrupt_callback_p callb
8991
Serial.println("Setup ESP32 Timer");
9092
#endif // DEBUG_MODE
9193
94+
return true;
9295
}
9396
9497
void InterruptCallback::stop(){
@@ -112,7 +115,7 @@ void InterruptCallback::start(){
112115

113116
#elif defined __AVR_ATmega328P__ || defined __AVR_ATmega2560__
114117

115-
bool InterruptCallback::setInterval(float intervalMs, interrupt_callback_p callback, void* payload)
118+
bool InterruptCallback::setInterval(float intervalMs, interrupt_callback_p callback, void* payload)
116119
{
117120
// We have requested to use Timer2 (see above)
118121
ITimer2.init();

Software/Arduino code/OpenAstroTracker/Mount.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const char* formatStringsRA[] = {
5858
// This is the callback function for the timer interrupt. It does very minimal work,
5959
// only stepping the stepper motors as needed.
6060
/////////////////////////////////
61-
void IRAM_ATTR mountLoop(void* payload) {
61+
void mountLoop(void* payload) {
6262
Mount* mount = reinterpret_cast<Mount*>(payload);
6363
mount->interruptLoop();
6464
}
@@ -1120,7 +1120,7 @@ void Mount::delay(int ms) {
11201120
//
11211121
// This function is run in an ISR. It needs to be fast and do little work.
11221122
/////////////////////////////////
1123-
void IRAM_ATTR Mount::interruptLoop()
1123+
void Mount::interruptLoop()
11241124
{
11251125
if (_mountStatus & STATUS_GUIDE_PULSE) {
11261126
if (_mountStatus & STATUS_GUIDE_PULSE_RA) {

Software/Arduino code/OpenAstroTracker/OpenAstroTracker.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
=======================================================================================================================================
33
4-
Version 1.6
4+
Version 1.7
55
66
1. Connect your Arduino, under tools choose "Arduino Uno", set the right Port and set "Arduino ISP" as the Programmer.
77
2. Hit upload (Ctrl-U)
@@ -16,7 +16,7 @@
1616
*/
1717
#include "Globals.hpp"
1818

19-
String version = "V1.7.06";
19+
String version = "V1.7.07";
2020

2121
///////////////////////////////////////////////////////////////////////////
2222
// Please see the Globals.h file for configuration of the firmware.

Software/Arduino code/OpenAstroTracker/WifiControl.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#include "Globals.hpp"
33

44
#ifdef WIFI_ENABLED
5-
#include "Mount.hpp";
6-
#include "LcdMenu.hpp";
5+
#include "Mount.hpp"
6+
#include "LcdMenu.hpp"
77
#include "MeadeCommandProcessor.hpp"
88
#include "WiFiServer.h"
99
#include "WiFiUDP.h"
@@ -39,8 +39,8 @@ class WifiControl {
3939
WiFiUDP* _udp;
4040
WiFiClient client;
4141

42-
long _infraStart = 0;
43-
int _infraWait = 30000; // 30 second timeout for
42+
unsigned long _infraStart = 0;
43+
unsigned long _infraWait = 30000; // 30 second timeout for
4444
};
4545

4646
extern WifiControl wifiControl;

Software/Arduino code/OpenAstroTracker/b_setup.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ void finishSetup();
2424
#if defined(ESP32) && !defined(RUN_STEPPERS_IN_MAIN_LOOP)
2525
// Forward declare the two functions we run in the main loop
2626
void serialLoop();
27-
void finishSetup();
2827

2928
TaskHandle_t StepperTask;
3029
TaskHandle_t CommunicationsTask;
@@ -134,8 +133,9 @@ void finishSetup()
134133
lcdMenu.printMenu("OpenAstroTracker");
135134
lcdMenu.setCursor(0, 1);
136135
lcdMenu.printMenu(" " + version);
136+
#ifndef HEADLESS_CLIENT
137137
unsigned long now = millis();
138-
138+
#endif
139139
// Create the command processor singleton
140140
MeadeCommandProcessor::createProcessor(&mount, &lcdMenu);
141141

Software/Arduino code/OpenAstroTracker/c_buttons.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ byte lastKey = btnNONE;
1616

1717
#endif
1818

19+
byte lcd_key;
20+
1921
void loop() {
2022

2123
#ifdef LCD_BUTTON_TEST
22-
byte lcd_key;
2324
int adc_key_in;
2425

2526
lcdMenu.setCursor(0, 0);

0 commit comments

Comments
 (0)