src_legacy/2018/src/memory/ProgramCache.cpp
// constructs a poi command by copying the command
// from the ProgramCache. Safe for external actions
constructs a poi command by copying the command
from the ProgramCache. Safe for external actions
constructs a poi command by copying the command from the ProgramCache . Safe for external actions
PoiCommand ProgramCache::getPoiCommand(uint8_t i){
  RawPoiCommand rawCmd;
  memcpy(rawCmd.field, _prog[i], sizeof(rawCmd.field)); 
  PoiCommand cmd(rawCmd);
  return cmd;
}
PoiCommand ProgramCache :: getPoiCommand ( uint8_t i ) { RawPoiCommand rawCmd ; memcpy ( rawCmd . field , _prog [ i ] , sizeof ( rawCmd . field ) ) ; PoiCommand cmd ( rawCmd ) ; return cmd ; }
constructs a poi command by copying the command
from the ProgramCache.
constructs a poi command by copying the command from the ProgramCache .
//TODO test against _numProgLines and retun nocmd if not existing // copy memory