In order to keep the required code modifications limited to one location in the code, and since this was strictly for a temporary setup, I wrote the new case this way. A bit clumsy and redundant, but straightforward. Also, my way has the drawback of being Arduino-specific.
case 130: // M130
pinMode(28, INPUT_PULLUP);
pinMode(29, INPUT_PULLUP);
pinMode(30, INPUT_PULLUP);
pinMode(31, INPUT_PULLUP);
Com::writeToAll = false;
Commands::waitUntilEndOfAllMoves();
Com::printF(PSTR("M130"));
if (READ(28) == 0) { Com::printF(PSTR("28")); }
if (READ(29) == 0) { Com::printF(PSTR("29")); }
if (READ(30) == 0) { Com::printF(PSTR("30")); }
if (READ(31) == 0) { Com::printF(PSTR("31")); }
break;