Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: TORTILLA/TORTILLA.cpp
- Revision:
- 5:fe1e88d6b0cb
- Parent:
- 4:379e05b2fc0d
- Child:
- 6:b1b74d1f8fab
--- a/TORTILLA/TORTILLA.cpp Wed Feb 20 15:35:56 2019 +0000 +++ b/TORTILLA/TORTILLA.cpp Wed Feb 20 18:43:15 2019 +0000 @@ -15,6 +15,12 @@ desiredProduction=0; TORTILLA_PRODUCTION=false; ENDED=0; + + for(int i=0;i<NumberOfTortillasPerCapsule;i++){ + cutterTrigger[i]=0; + griddleTrigger[i]=0; + ovenTrigger[i]=0; + }//for return; }//Constructor @@ -65,6 +71,12 @@ desiredProduction=DP; TORTILLA_PRODUCTION=true; ENDED=0; + + for(int i=0;i<NumberOfTortillasPerCapsule;i++){ + cutterTrigger[i]=0; + griddleTrigger[i]=0; + ovenTrigger[i]=0; + }//for return; }//setDP @@ -118,4 +130,26 @@ }//getGriddleCount int TORTILLA::getOvenCount(void){ return ovenCount; -}//getOvenCount \ No newline at end of file +}//getOvenCount + +void TORTILLA::setCutterTrigger(int tortilla,int time){ + cutterTrigger[tortilla]=time; + return; +}//setCutterTrigger +int TORTILLA::getCutterTrigger(int tortilla){ + return cutterTrigger[tortilla]; +}//getCutterTrigger +void TORTILLA::setGriddleTrigger(int tortilla,int time){ + griddleTrigger[tortilla]=time; + return; +}//setGriddleTrigger +int TORTILLA::getGriddleTrigger(int tortilla){ + return griddleTrigger[tortilla]; +}//getGriddleTrigger +void TORTILLA::setOvenTrigger(int tortilla,int time){ + ovenTrigger[tortilla]=time; + return; +}//setOvenTrigger +int TORTILLA::getOvenTrigger(int tortilla){ + return ovenTrigger[tortilla]; +}//getOvenTrigger \ No newline at end of file