Skip to content

Commit

Permalink
🎨 Misc. fixes, cleanup
Browse files Browse the repository at this point in the history
Co-Authored-By: Martin Turski <turningtides@outlook.de>
  • Loading branch information
thinkyhead and quiret committed Mar 24, 2023
1 parent a25204c commit f6934a2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Marlin/Marlin.ino
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Configuration
- https://github.com/MarlinFirmware/Configurations
Example configurations for several printer models.
- https://www.youtube.com/watch?v=3gwWVFtdg-4
- https://youtu.be/3gwWVFtdg-4
A good 20-minute overview of Marlin configuration by Tom Sanladerer.
(Applies to Marlin 1.0.x, so Jerk and Acceleration should be halved.)
Also... https://www.google.com/search?tbs=vid%3A1&q=configure+marlin
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/ESP32/ota.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void OTA_init() {
})
.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
char *str;
const char *str = "unknown";
switch (error) {
case OTA_AUTH_ERROR: str = "Auth Failed"; break;
case OTA_BEGIN_ERROR: str = "Begin Failed"; break;
Expand Down
2 changes: 2 additions & 0 deletions Marlin/src/core/serial_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

#include "../inc/MarlinConfigPre.h"

#include <stddef.h> // for size_t

#if ENABLED(EMERGENCY_PARSER)
#include "../feature/e_parser.h"
#endif
Expand Down
7 changes: 3 additions & 4 deletions Marlin/src/lcd/tft_io/tft_orientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
#define TFT_COLOR_BGR _BV32(4)

// Each TFT Driver is responsible for its default color mode.
// #ifndef TFT_COLOR
// #define TFT_COLOR TFT_COLOR_RGB
// #endif
//#ifndef TFT_COLOR
// #define TFT_COLOR TFT_COLOR_RGB
//#endif

#define TOUCH_ORIENTATION_NONE 0
#define TOUCH_LANDSCAPE 1
Expand All @@ -82,4 +82,3 @@
#ifndef TOUCH_ORIENTATION
#define TOUCH_ORIENTATION TOUCH_LANDSCAPE
#endif

2 changes: 1 addition & 1 deletion Marlin/src/libs/numtostr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
char conv[9] = { 0 };

#define DIGIT(n) ('0' + (n))
#define DIGIMOD(n, f) DIGIT((n)/(f) % 10)
#define DIGIMOD(n, f) DIGIT(((n)/(f)) % 10)
#define RJDIGIT(n, f) ((n) >= (f) ? DIGIMOD(n, f) : ' ')
#define MINUSOR(n, alt) (n >= 0 ? (alt) : (n = -n, '-'))
#define INTFLOAT(V,N) (((V) * 10 * pow(10, N) + ((V) < 0 ? -5: 5)) / 10) // pow10?
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_V1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
#define E0_SERIAL_RX_PIN E0_SERIAL_TX_PIN

// Reduce baud rate to improve software serial reliability
#define TMC_BAUD_RATE 19200
#define TMC_BAUD_RATE 19200
#endif

//
Expand Down Expand Up @@ -214,7 +214,7 @@

#define FORCE_SOFT_SPI // SPI MODE3

#define LED_PIN EXP1_06_PIN // red pwm
#define LED_PIN EXP1_06_PIN // red pwm
//#define LED_PIN EXP1_07_PIN // green
//#define LED_PIN EXP1_08_PIN // blue

Expand Down

0 comments on commit f6934a2

Please sign in to comment.