Added ARM logic.

This commit is contained in:
David E. Tiller 2022-04-05 14:30:16 -04:00
parent 72708ecb40
commit 09d2d5f6c5
1 changed files with 10 additions and 2 deletions

View File

@ -108,8 +108,8 @@ void get_r2f_msg_id_type(uint64_t pkt, char *text, int text_size) {
uint32_t val; uint32_t val;
char temp[32]; char temp[32];
pkt >>= 4; uint64_t temp_pkt = pkt >> 4;
val = pkt & 0x07ULL; val = temp_pkt & 0x07ULL;
strlcat(text, "msgid=", text_size); strlcat(text, "msgid=", text_size);
@ -118,6 +118,14 @@ void get_r2f_msg_id_type(uint64_t pkt, char *text, int text_size) {
strlcat(text, "ONEWAY", text_size); strlcat(text, "ONEWAY", text_size);
break; break;
case 7: // TEST button, maybe
// Test the CONFIRM bit
if ((pkt & 0x10000000000ULL) == 0) {
strlcat(text, "TEST/ARM_REQ", text_size);
} else {
strlcat(text, "ARM_CONFIRM", text_size);
}
break;
default: default:
sprintf(temp, "CUSTOM(%d)", val); sprintf(temp, "CUSTOM(%d)", val);
strlcat(text, temp, text_size); strlcat(text, temp, text_size);