mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-01 10:23:19 +02:00
Better error message for pin setup failure
This commit is contained in:
@@ -148,7 +148,7 @@ Pin Pin::create(const StringRange& str) {
|
||||
|
||||
return Pin(pinImplementation);
|
||||
} catch (const AssertionFailed& ex) { // We shouldn't get here under normal circumstances.
|
||||
pin_error("Setting up pin failed. Details: %s\r\n", ex.what());
|
||||
pin_error("Setting up pin [%s] failed. Details: %s\r\n", str.str().c_str(), ex.what());
|
||||
(void)ex; // Get rid of compiler warning
|
||||
|
||||
return Pin(pinImplementation);
|
||||
|
Reference in New Issue
Block a user