Skip to content

Commit fe7f4a6

Browse files
committed
Reinstate M260 and M261 support in Duet 2 builds
1 parent dc2173e commit fe7f4a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Platform/Platform.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,6 +2223,7 @@ GCodeResult Platform::SendI2cOrModbus(GCodeBuffer& gb, const StringRef &reply) T
22232223
{
22242224
# if defined(I2C_IFACE)
22252225
case 0: // I2C
2226+
case -1:
22262227
{
22272228
uint32_t numToReceive = 0;
22282229
bool seenR;
@@ -2362,6 +2363,7 @@ GCodeResult Platform::ReceiveI2cOrModbus(GCodeBuffer& gb, const StringRef &reply
23622363
{
23632364
# if defined(I2C_IFACE)
23642365
case 0: // I2C
2366+
case -1:
23652367
{
23662368
I2C::Init();
23672369
uint8_t bValues[MaxI2cOrModbusValues];

0 commit comments

Comments
 (0)