Firmware/FFBoard/UserExtensions/Src/FFBoardMainCommandThread.cpp
/*
 * Prints a formatted flash dump to the reply string
 */
Prints a formatted flash dump to the reply string
Prints a formatted flash dump to the reply string
void FFBoardMainCommandThread::printFlashDump(std::string *reply){
	std::vector<std::tuple<uint16_t,uint16_t>> result;
	Flash_Dump(&result);
	uint16_t adr;
	uint16_t val;
	for(auto entry : result){
		std::tie(adr,val) = entry;
		*reply += std::to_string(adr) + ":" + std::to_string(val) + "\n";
	}
}
void FFBoardMainCommandThread :: printFlashDump ( std :: string * reply ) { std :: vector < std :: tuple < uint16_t , uint16_t > > result ; Flash_Dump ( & result ) ; uint16_t adr ; uint16_t val ; for ( auto entry : result ) { std :: tie ( adr , val ) = entry ; * reply += std :: to_string ( adr ) + " " + std :: to_string ( val ) + " \n " ; } }
Prints a formatted flash dump to the reply string
Prints a formatted flash dump to the reply string