Skip to content

Commit b95fd5e

Browse files
committed
C plus plus
1 parent 47c6bd4 commit b95fd5e

File tree

9 files changed

+6
-7
lines changed

9 files changed

+6
-7
lines changed

Marlin/Configuration.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
*
104104
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
105105
*/
106-
#define SERIAL_PORT 0
106+
#define SERIAL_PORT -1
107107

108108
/**
109109
* Select a secondary serial port on the board to use for communication with the host.
@@ -128,11 +128,11 @@
128128

129129
// Choose the name from boards.h that matches your setup
130130
#ifndef MOTHERBOARD
131-
#define MOTHERBOARD BOARD_RAMPS_14_EFB
131+
#define MOTHERBOARD BOARD_MALYAN_M200_V2
132132
#endif
133133

134134
// Name displayed in the LCD "Ready" message and Info menu
135-
//#define CUSTOM_MACHINE_NAME "3D Printer"
135+
#define CUSTOM_MACHINE_NAME "STM32F070CB_malyan-tests (1)"
136136

137137
// Printer's unique ID, used by some programs to differentiate between machines.
138138
// Choose your own or use a service like https://www.uuidgenerator.net/version4

Marlin/src/sd/usb_hostmsc/Sd2Card_usbhost_msc.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
#if ENABLED(USB_HOST_MSC_FLASH_SUPPORT)
2626

27+
#include "Sd2Card_usbhost_msc.h"
28+
#include HAL_PATH(../../HAL, usb_hostlib/usbh_usr.h)
29+
2730
#include "../../MarlinCore.h"
2831
#include "../../core/serial.h"
2932
#include "../../module/temperature.h"
3033

31-
#include "Sd2Card_usbhost_msc.h"
32-
#include "../../HAL/STM32/usb_hostlib/usbh_usr.h"
33-
3434
// idle() is always called in Marlin idle()
3535
void Sd2Card::idle() {
3636

@@ -50,7 +50,6 @@ bool Sd2Card::isInserted() {
5050
return USBH_IsConnected();
5151
}
5252

53-
5453
// Marlin calls this to initialize an SD card once it is inserted.
5554
bool Sd2Card::init(const uint8_t, const pin_t) {
5655
return isInserted();

0 commit comments

Comments
 (0)