From e88d1b6acd5bb22ff73eafb7191746a767ffd97a Mon Sep 17 00:00:00 2001 From: James Devine Date: Wed, 21 Sep 2022 10:39:07 +0100 Subject: [PATCH] DEVICE_USB_ERROR -> DEVICE_PERIPHERAL_ERROR --- source/driver-models/CodalUSB.cpp | 2 +- source/drivers/GhostFAT.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/driver-models/CodalUSB.cpp b/source/driver-models/CodalUSB.cpp index 9d1f7d2c..dc01a0b1 100644 --- a/source/driver-models/CodalUSB.cpp +++ b/source/driver-models/CodalUSB.cpp @@ -679,7 +679,7 @@ int CodalUSB::start() void usb_panic(int lineNumber) { DMESG("USB assertion failed: line %d", lineNumber); - target_panic(DEVICE_USB_ERROR); + target_panic(DEVICE_PERIPHERAL_ERROR); } #endif diff --git a/source/drivers/GhostFAT.cpp b/source/drivers/GhostFAT.cpp index 54fd2598..4e700461 100644 --- a/source/drivers/GhostFAT.cpp +++ b/source/drivers/GhostFAT.cpp @@ -396,7 +396,7 @@ GFATEntry *GhostFAT::addFile(GFATReadCallback read, void *userdata, const char * uint32_t size, uint8_t dirid) { if (filesFinalized()) - target_panic(DEVICE_USB_ERROR); + target_panic(DEVICE_PERIPHERAL_ERROR); GFATEntry *f = (GFATEntry *)malloc(sizeof(GFATEntry) + strlen(filename) + 1); memset(f, 0, sizeof(GFATEntry));