1
0
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:
Mitch Bradley
2021-06-03 09:58:51 -10:00
parent 73ea271738
commit 1f2b97a2c1

View File

@@ -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);