Skip to content
Snippets Groups Projects
Commit 8b2a6f62 authored by Vesa Oikonen's avatar Vesa Oikonen
Browse files

even more robust data_type check

parent bc40e5bb
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ int ecat63ReadMainheader(
if(!little) swabip(buf+50, 2);
memcpy(&h->data_type, buf+50, 2);
if(ECAT63_TEST>10) printf("main_header.data_type=%d\n", h->data_type);
if(h->data_type==-1) {
if(h->data_type<1) {
if(ECAT63_TEST>1) printf("invalid data_type; assuming VAX_I2\n");
h->data_type=VAX_I2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment