From 5cbae518cfa7cbfe2c37098656de2e636156a89d Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Thu, 5 Aug 2021 13:48:00 +1200 Subject: [PATCH 1/3] fixes issue#2291 --- ini/stm32f4.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ini/stm32f4.ini b/ini/stm32f4.ini index d2332630a100..8e87d6ec4482 100644 --- a/ini/stm32f4.ini +++ b/ini/stm32f4.ini @@ -388,8 +388,9 @@ build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags} [env:mks_robin_nano_v3_usb_flash_drive_msc] platform = ${common_stm32.platform} extends = env:mks_robin_nano_v3_usb_flash_drive -build_flags = ${env:mks_robin_nano_v3_usb_flash_drive} +build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags} -DUSBD_USE_CDC_MSC +build_unflags = -DUSBD_USE_CDC # # This I2C1(PB8:I2C1_SCL PB9:I2C1_SDA) is used by MKS Monster8 From b1b86d4d38db56add0961e471084b69f51227b86 Mon Sep 17 00:00:00 2001 From: ellensp <530024+ellensp@users.noreply.github.com> Date: Thu, 5 Aug 2021 13:56:26 +1200 Subject: [PATCH 2/3] fix mks_monster8_usb_flash_drive_msc too --- ini/stm32f4.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ini/stm32f4.ini b/ini/stm32f4.ini index 8e87d6ec4482..5bb77ebf64e4 100644 --- a/ini/stm32f4.ini +++ b/ini/stm32f4.ini @@ -435,5 +435,7 @@ build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flag [env:mks_monster8_usb_flash_drive_msc] platform = ${common_stm32.platform} extends = env:mks_monster8_usb_flash_drive -build_flags = ${env:mks_monster8_usb_flash_drive} +build_flags = ${env:mks_monster8_usb_flash_drive.build_flags} -DUSBD_USE_CDC_MSC +build_unflags = -DUSBD_USE_CDC + From 5955352d6824c77adf55f043a61360a3d155a530 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 6 Aug 2021 15:53:15 -0500 Subject: [PATCH 3/3] Update stm32f4.ini --- ini/stm32f4.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/ini/stm32f4.ini b/ini/stm32f4.ini index 5bb77ebf64e4..b32efb83a908 100644 --- a/ini/stm32f4.ini +++ b/ini/stm32f4.ini @@ -438,4 +438,3 @@ extends = env:mks_monster8_usb_flash_drive build_flags = ${env:mks_monster8_usb_flash_drive.build_flags} -DUSBD_USE_CDC_MSC build_unflags = -DUSBD_USE_CDC -