Skip to content
Snippets Groups Projects
Commit c024dddf authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fixed settings bug.

parent d8d71c2b
Branches
Tags
No related merge requests found
......@@ -7,6 +7,7 @@
#include "experiment.h"
#include "asf.h"
#include "settings.h"
#include "tcs.h"
#include <string.h>
#include <math.h>
......@@ -23,20 +24,21 @@ int8_t command_handler(char command){
* @param command Command character input.
*/
ca_experiment(p5, step_dac, step_seconds);
//free arrays
free(step_dac);
free(step_seconds);
break;
switch (command){
case 'E': //Experiment options
experiment_handler(getchar());
break;
case 'S': //Settings options
settings_handler(getchar());
break;
case 'T': ;
uint16_t tcs_data[4] = {0,0,0,0};
tcs_readvalues(tcs_data);
printf("#INFO: TCS—%u %u %u %u\n\r", tcs_data[0], tcs_data[1], tcs_data[2], tcs_data[3]);
break;
case 'V': //check version
printf("V%u.%u\n\r", BOARD_VER_MAJOR, BOARD_VER_MINOR);
break;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment