116 t = (
T*) (can_packet);
117 string_id = (t->data[1]>>4);
118 offset = (t->data[1]&0x0F);
119 data[string_id].board_id = char(t->id>>4&0xf);
123 yError(
"msg from board %d contains an ERROR! (>MAX_STRINGS)\r\n",
data[string_id ].board_id);
127 for (j=0 ; j<t->len-2; j++)
128 data[string_id].text_buffer[j+
offset*6]=t->data[j+2];
130 if (t->data[0]==ICUBCANPROTO_PER_MC_MSG__PRINT + 128)
132 data[string_id].maybe_last_part =
true;
133 data[string_id].expected_length=
offset*6+t->len-2;
136 if (
data[string_id].maybe_last_part)
138 data[string_id].current_length=ACE_OS::strlen(
data[string_id].text_buffer);
140 if (
data[string_id].expected_length==
data[string_id].current_length)
141 data[string_id].complete =
true;
164 if (
data[string_id].complete)
return string_id;