Improve coding and add color to shell output
This commit is contained in:
		@@ -42,7 +42,6 @@ int main()
 | 
			
		||||
	setup_nvic_priorities();
 | 
			
		||||
	systick_setup();
 | 
			
		||||
 | 
			
		||||
	//setup_dma(&adc_results, 3);
 | 
			
		||||
	adc_pt1000_setup_meas();
 | 
			
		||||
 | 
			
		||||
	digio_setup_default_all();
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t   handle,
 | 
			
		||||
	(void)length;
 | 
			
		||||
 | 
			
		||||
	shellmatta_printf(handle, "Reflow Oven Controller Firmware " xstr(GIT_VER) "\r\n"
 | 
			
		||||
				"Compiled: " __DATE__);
 | 
			
		||||
				"Compiled: " __DATE__ " at " __TIME__);
 | 
			
		||||
 | 
			
		||||
	return SHELLMATTA_OK;
 | 
			
		||||
}
 | 
			
		||||
@@ -207,7 +207,7 @@ shellmatta_handle_t shell_init(void)
 | 
			
		||||
	shellmatta_retCode_t ret;
 | 
			
		||||
 | 
			
		||||
	ret = shellmatta_doInit(&shell, &handle, shell_buffer, sizeof(shell_buffer), history_buffer, sizeof(history_buffer),
 | 
			
		||||
			  "Enter command:\r\n", cmd, write_shell_callback);
 | 
			
		||||
			  "\e[1;32mEnter command:\e[m\r\n", cmd, write_shell_callback);
 | 
			
		||||
	if (ret != SHELLMATTA_OK)
 | 
			
		||||
		handle = NULL;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user