1
0
mirror of https://github.com/mist-devel/mist-firmware.git synced 2026-04-17 00:15:25 +00:00

Fix compiling without usb storage support

This commit is contained in:
Gerald Schnabel
2022-08-05 21:28:09 +02:00
parent 6557912a7f
commit be0e1bcdd6
2 changed files with 2 additions and 1 deletions

View File

@@ -33,7 +33,6 @@ static uint8_t usb_hub_get_port_status(usb_device_t *dev, uint8_t port, uint16_t
}
static uint8_t usb_hub_parse_conf(usb_device_t *dev, uint8_t conf, uint16_t len, ep_t *pep) {
usb_storage_info_t *info = &(dev->storage_info);
uint8_t rcode;
bool is_good_interface = false;

View File

@@ -2,6 +2,7 @@
// storage.c
//
#ifdef USB_STORAGE
#include <stdio.h>
#include <string.h>
@@ -497,3 +498,4 @@ unsigned int usb_host_storage_capacity() {
const usb_device_class_config_t usb_storage_class = {
usb_storage_init, usb_storage_release, usb_storage_poll };
#endif