Marlin Code How to fix ( 'quickStop' was not declared in this scope )

First I am extremely new to Arduino Marlin Coding so this is a bit of a struggle for me.

I am using Arduino 1.8.5

I am trying to get my LCD and SD for a RipRap Discount Full Grtaphics Display working for this Trinamic TRAMS Firmware v1.0 which their support for is almost non-existent.

I ran into a few problems which I was able to work around so far.

1st was changing #include <utility/u8g.h> to #include <clib/u8g.h>
and
2nd was changing 'fpos_t' to filepost_t

Now I hit a error which I have not been able to figure out.

'quickStop' was not declared in this scope


Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

sketch\cardreader.cpp: In member function 'void CardReader::printingHasFinished()':

cardreader.cpp:634: error: 'quickStop' was not declared in this scope

quickStop();

^

exit status 1
'quickStop' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Below is the section of code that I am having the issue with. The BOLD text is the particular line highlight when the error pops up.

Any help would be appreciated.


void CardReader::printingHasFinished()
{
st_synchronize();
if(file_subcall_ctr>0) //heading up to a parent file that called current as a procedure.
{
file.close();
file_subcall_ctr--;
openFile(filenames[file_subcall_ctr],true,true);
setIndex(filespos[file_subcall_ctr]);
startFileprint();
}
else
{
quickStop();
file.close();
sdprinting = false;
if(SD_FINISHED_STEPPERRELEASE)
{
//finishAndDisableSteppers();
enquecommand_P(PSTR(SD_FINISHED_RELEASECOMMAND));
}
autotempShutdown();
}
}
#endif //SDSUPPORT

void quickStop ()
{
  while (1);
}

Hi have you still TRAMS??