mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-09-03 03:13:25 +02:00
Re-instated assertion.
This commit is contained in:
@@ -48,8 +48,8 @@ namespace Pins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PinDetail* GetPin(uint8_t index) const {
|
PinDetail* GetPin(uint8_t index) const {
|
||||||
// This assertion causes message spewing making debugging impossible
|
// This assertion shouldn't be hit. If it is, undefined behavior will follow.
|
||||||
// Assert(_pins[index] != nullptr, "Pin is not defined. Cannot use this pin.");
|
Assert(_pins[index] != nullptr, "Pin %d is not defined. Cannot use this pin.", index);
|
||||||
return _pins[index];
|
return _pins[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user