Blackbox device type 'file' (SITL) considered working when file handler is available
[inav.git] / src / main / drivers / usb_msc.c
blob7004e7efdea719f74853364f7ed92d260bf84b13
1 /*
2 * This file is part of INAV
4 * INAV is free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
8 * any later version.
10 * INAV is distributed in the hope that it
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #include "drivers/persistent.h"
22 #include <stdbool.h>
24 #ifdef USE_USB_MSC
26 bool mscCheckBoot(void)
28 return (persistentObjectRead(PERSISTENT_OBJECT_RESET_REASON) == RESET_MSC_REQUEST);
31 #endif