This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new d39ad2200 tinyusb/msc_fat_view: Enable update handler by default
d39ad2200 is described below

commit d39ad2200889e0e3ae4884ab18008ba3ca96c708
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Mon Mar 17 09:39:25 2025 +0100

    tinyusb/msc_fat_view: Enable update handler by default
    
    Update functionality was not enabled by default.
    This enables this since it's easier to disable it
    once functionality works then guessing why it's
    not working.
    
    'Drop image here' file now requires update handler
    to be enabled to avoid confusion when file shows
    up in the volume but update is not enabled.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 hw/usb/tinyusb/msc_fat_view/syscfg.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hw/usb/tinyusb/msc_fat_view/syscfg.yml 
b/hw/usb/tinyusb/msc_fat_view/syscfg.yml
index 447feecf3..1e3b39118 100644
--- a/hw/usb/tinyusb/msc_fat_view/syscfg.yml
+++ b/hw/usb/tinyusb/msc_fat_view/syscfg.yml
@@ -97,10 +97,12 @@ syscfg.defs:
         description: >
             If set to 1, adds 'Drop image here' file.
         value: 0
+        restrictions:
+            - 'MSC_FAT_VIEW_UPDATE_HANDLER if 1'
     MSC_FAT_VIEW_UPDATE_HANDLER:
         description: >
             If set to 1, image can be dropped to upgrade firmware.
-        value: 0
+        value: 1
     MSC_FAT_VIEW_SYSTEM_VOLUME_INFORMATION:
         description: >
             If set to 1, adds 'System Volume Information' file.

Reply via email to