This commit is contained in:
jaseg 2023-06-01 18:15:29 +02:00
parent 1ee1db13a9
commit 358e83c419
4 changed files with 44 additions and 30 deletions

View file

@ -5,7 +5,7 @@
#include <serial.h>
#define PROTO_RESPONSE_TIMEOUT_MS 5
#define PROTO_RESPONSE_TIMEOUT_MS 7
#define PROTO_UPDATE_INTERVAL_MS 50
@ -40,7 +40,7 @@ struct proto_state {
bool rx_lid_open;
bool rx_estop;
uint32_t adc_samples[2][2][512];
int32_t adc_samples[2][2][512];
size_t adc_sp_wr_idx[2];
size_t adc_sp_rd_idx[2];
uint64_t adc_sample_timestamp[2];