-
Notifications
You must be signed in to change notification settings - Fork 76
V1.13.18 - Updates #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
V1.13.18 - Updates #274
Conversation
- OAE support - AZ/ALT debug output - Stop button now stop all motors (incl. AZ and ALT)
- Store AZ/ALT steps per degree and allow them to be set from Meade # Conflicts: # src/b_setup.hpp
… AZ and ALT steps storage and retrieval
- Added more output to the InfoDisplay during boot and fixed a bug in console mode. - Fixed a bug that was causing the firmware to hang after a slew, if a :Q# command was issued (thanks to user c3n for tracking it down, pun intended).
|
Looks like your PR has code that needs to be changed in order to meet our coding standards!
|
src/b_setup.hpp
Outdated
| #if TEST_VERIFY_MODE == 1 | ||
| #ifdef OAM | ||
| Serial.print(F("Booting OAM Firmware ")); | ||
| #elif OAE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the first condition is #ifdef OAM which equals #if defined(OAM). the second one is "just" #elif OAE. This could cause issues if OAE flag is defined without a value.
| #elif OAE | |
| #elif defined(OAE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
| #if USE_GPS == 1 | ||
| LOG(DEBUG_ANY, "[SYSTEM]: Initializing GPS..."); | ||
| #if (INFO_DISPLAY_TYPE != INFO_DISPLAY_TYPE_NONE) | ||
| int gpsLine = addConsoleText(F("Initialize GPS..."), false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the argument false? addConsoleText(String text) in b_setup has just one parameter. InfoDisplayRender#addConsoleText on the other side has two parameters ... but second one does not seem to be used anywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn, you are on a roll! Yeah, that was a leftover from when I replaced all the calls...
src/SSD1306_128x64_Display.hpp
Outdated
|
|
||
| virtual int addConsoleText(String text, bool tinyFont) | ||
| { | ||
| _textList[_curLine++] = text; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i know it is not part of the PR, but we should check for overflow here. _curLine++ has to be smaller than MAX_CONSOLE_LINES
Otherwise we need a strategy ... maybe one of these:
- FIFO like: adding a line would drop the first one. This is not that sexy to implement since we would need to shift all the array entries down before adding new line. It would be probably easier by using a ring buffer as structure.
- drop new line and return an error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is way out of date file.... urgh... let me check what's going on here.
ConfigurationValidation.hpp
Outdated
| #error AZ driver address for DRIVER_TYPE_TMC2209_UART not specified. | ||
| #endif | ||
| #endif | ||
| #elif defined(BOARD_OAE_V1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check will not work as expected. BOARD_OAE_V1 is always defined in Constants.hpp. Because of this the #else block will be never reached.
| #elif defined(BOARD_OAE_V1) | |
| #elif (BOARD == BOARD_OAE_V1) |
ConfigurationValidation.hpp
Outdated
| #endif | ||
| #endif | ||
|
|
||
| #elif defined(BOARD_OAE_V1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check will not work as expected. BOARD_OAE_V1 is always defined in Constants.hpp. Because of this the #else block will be never reached.
| #elif defined(BOARD_OAE_V1) | |
| #elif (BOARD == BOARD_OAE_V1) |
src/SSD1306_128x64_Display.hpp
Outdated
| #elif defined(OAE) | ||
| display->drawString(32, 6, F("OpenAstroExplorer")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate of lines 98-99
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is wrong in this PR, these are old files...
| /** | ||
| * @brief a pins configuration file for an ESP32-based OAT. | ||
| */ | ||
|
|
||
| #pragma once |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate of lines 1-5
Uh oh!
There was an error while loading. Please reload this page.