test read data

This commit is contained in:
weiting2
2019-12-06 13:53:47 +08:00
parent 695cac4cf0
commit 57ec1ad0c6
@@ -968,7 +968,6 @@ static void read_neu_ins_config(uint8_t config_type, uint32_t* value) {
* 33-36: vol channel : t1-t5
*/
static uint8_t build_neu_ins_config(uint8_t config_type, uint32_t* value) {
headstage_led_color(COLOR_RED);
bool done;
switch (config_type) {
case NEU_SET_STI_CUR: {
@@ -1071,6 +1070,8 @@ static void headstage_neu_state_spi() {
uint32_t value = 0;
uint8_t nxt_ins = 0;
switch (NEULIVE_STATE.state) {
headstage_led_color(COLOR_RED);
headstage_led_color(COLOR_GREEN);
case NEU_WRITE_INSTRUCTION: {
nxt_ins = build_neu_ins_config(NEULIVE_STATE.config_type, &value); /**< set instruction one by one in order to set all the parameter.*/
NEULIVE_STATE.config_type = nxt_ins;