Skip to content
Snippets Groups Projects

Working 24 controls + attribution

Merged Franklin Kaifeng Zheng requested to merge fkzheng-24-sensor-attribution into main
+ 1
4
@@ -337,7 +337,7 @@ void uart_train_server_tx() {
Receive(&sender, rcvbuf, sizeof(struct UART_Server_Request));
struct UART_Server_Request* req = (struct UART_Server_Request*)rcvbuf;
if (last_byte_sent_time != 0 && curtime - last_byte_sent_time > 500) {
if (last_byte_sent_time != 0 && curtime - last_byte_sent_time > 100) {
debug_printi("Error, more than 1s delay to train set, current state: ", tx_state, "\r\n");
debug_prints("Going back to ready state...");
tx_state = UART_TRAIN_TX_READY;
@@ -362,9 +362,6 @@ void uart_train_server_tx() {
i++;
}
} else if (req->request_type == UART_TX_TRIGGERED_1 || req->request_type == UART_CTS_TRIGGERED) {
if (req->request_type == UART_CTS_TRIGGERED) {
debug_prints("CTS\r\n");
}
tx_state = uart_train_tx_transition(tx_state, req->request_type);
} else {
ASSERT(0);
Loading