Add calibration routine from shell
This commit is contained in:
@@ -31,6 +31,7 @@ int main()
|
||||
const char *uart_input;
|
||||
size_t uart_input_len;
|
||||
shellmatta_handle_t shell_handle;
|
||||
int uart_receive_status;
|
||||
|
||||
setup_nvic_priorities();
|
||||
systick_setup();
|
||||
@@ -51,10 +52,9 @@ int main()
|
||||
while(1) {
|
||||
pt1000_value_status = adc_pt1000_get_current_resistance(&pt1000_value);
|
||||
|
||||
if (uart_receive_data_with_dma(&uart_input, &uart_input_len) >= 0) {
|
||||
uart_receive_status = uart_receive_data_with_dma(&uart_input, &uart_input_len);
|
||||
if (uart_receive_status >= 1)
|
||||
shell_handle_input(shell_handle, uart_input, uart_input_len);
|
||||
}
|
||||
//systick_wait_ms(300);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user