Compare commits
No commits in common. "45bad91ba7af5f86abceb05a11a002f9a6006ae9" and "4dbf6d4d3d3142230cebc53eca1320508524d32b" have entirely different histories.
45bad91ba7
...
4dbf6d4d3d
@ -120,8 +120,6 @@ void read_can(Tel *t, int soc) {
|
|||||||
|
|
||||||
if (nbytes < 0) return; // -1 EAGAIN means empty
|
if (nbytes < 0) return; // -1 EAGAIN means empty
|
||||||
|
|
||||||
if (nbytes != sizeof(struct can_frame)) return;
|
|
||||||
|
|
||||||
if (nbytes > 0) {
|
if (nbytes > 0) {
|
||||||
|
|
||||||
switch (frame.can_id) {
|
switch (frame.can_id) {
|
||||||
@ -524,7 +522,6 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
uart_str.c_cflag &= ~CSIZE; // clear bit size
|
uart_str.c_cflag &= ~CSIZE; // clear bit size
|
||||||
uart_str.c_cflag |= (CLOCAL | CREAD | CS8);
|
uart_str.c_cflag |= (CLOCAL | CREAD | CS8);
|
||||||
uart_str.c_cflag &= ~PARENB;
|
|
||||||
|
|
||||||
cfsetispeed(&uart_str, B115200);
|
cfsetispeed(&uart_str, B115200);
|
||||||
cfsetospeed(&uart_str, B115200);
|
cfsetospeed(&uart_str, B115200);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user