Pacemaker code Implementation for SFWRENG 3K04
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
Diff: interface.cpp
- Revision:
- 30:0cb4890910cd
- Parent:
- 28:4f36e100ccbe
--- a/interface.cpp Tue Nov 29 21:03:33 2016 +0000 +++ b/interface.cpp Tue Nov 29 21:30:19 2016 +0000 @@ -303,7 +303,7 @@ // } void interface::getEgram(){ - myDataStruct = new dataStruct(myHardware); + //myDataStruct = new dataStruct(myHardware); isEgram = true; pc->printf("\nPress 1 to stop streaming egram data"); while(isEgram){ @@ -315,7 +315,7 @@ } Thread::wait(40); - myQueue = myDataStruct->getData(); + myQueue = getData(); //I know below doesn't look neat, but it just will print values to the screen for now. One day we may do a graph. myQueue.Get( &nTemp ); pc->printf( "Item 1 = %d\r", nTemp ); @@ -338,7 +338,7 @@ myQueue.Get( &nTemp ); pc->printf( "Item 10 = %d\r", nTemp ); } - delete myDataStruct; + // delete myDataStruct; }