1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 10:53:01 +02:00

Re-instated assertion.

This commit is contained in:
Stefan de Bruijn
2020-10-30 14:11:26 +01:00
parent 2a99442e35
commit a93fc58866

View File

@@ -48,8 +48,8 @@ namespace Pins {
}
PinDetail* GetPin(uint8_t index) const {
// This assertion causes message spewing making debugging impossible
// Assert(_pins[index] != nullptr, "Pin is not defined. Cannot use this pin.");
// This assertion shouldn't be hit. If it is, undefined behavior will follow.
Assert(_pins[index] != nullptr, "Pin %d is not defined. Cannot use this pin.", index);
return _pins[index];
}