Skip to content

Commit

Permalink
🐛 Fix MKS 'USB Flash MSC' environments (#22515)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored Aug 6, 2021
1 parent 9a8c9d4 commit e7c3384
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ini/stm32f4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -434,5 +435,6 @@ 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

0 comments on commit e7c3384

Please sign in to comment.