mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
Set unmounted on configuration reset
This commit is contained in:
parent
5cf94234d2
commit
9560d0813f
@ -965,7 +965,14 @@ static bool process_set_config(uint8_t rhport, uint8_t cfg_num)
|
||||
}
|
||||
|
||||
// invoke callback
|
||||
if (tud_mount_cb) tud_mount_cb();
|
||||
if (cfg_num)
|
||||
{
|
||||
if (tud_mount_cb) tud_mount_cb();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tud_umount_cb) tud_umount_cb();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user