- fprintf(stdout, "SWITCH:TYPE=INTERTECHNO,");
- fprintf(stdout, "rid0=%x,",bb[1][0]);
- fprintf(stdout, "rid1=%x,",bb[1][1]);
- fprintf(stdout, "rid2=%x,",bb[1][2]);
- fprintf(stdout, "rid3=%x,",bb[1][3]);
- fprintf(stdout, "rid4=%x,",bb[1][4]);
- fprintf(stdout, "rid5=%x,",bb[1][5]);
- fprintf(stdout, "rid6=%x,",bb[1][6]);
- fprintf(stdout, "rid7=%x,",bb[1][7]);
- fprintf(stdout, "SLAVE=%i,",bb[1][7] & 0b00001111);
- fprintf(stdout, "MASTER=%i,",(bb[1][7] & 0b11110000) >> 4);
- fprintf(stdout, "COMMAND=%i\n",(bb[1][6] & 0b00000111));
+ fprintf(stdout, "Switch event:\n");
+ fprintf(stdout, "protocol = Intertechno\n");
+ fprintf(stdout, "rid = %x\n",bb[1][0]);
+ fprintf(stdout, "rid = %x\n",bb[1][1]);
+ fprintf(stdout, "rid = %x\n",bb[1][2]);
+ fprintf(stdout, "rid = %x\n",bb[1][3]);
+ fprintf(stdout, "rid = %x\n",bb[1][4]);
+ fprintf(stdout, "rid = %x\n",bb[1][5]);
+ fprintf(stdout, "rid = %x\n",bb[1][6]);
+ fprintf(stdout, "rid = %x\n",bb[1][7]);
+ fprintf(stdout, "ADDR Slave = %i\n",bb[1][7] & 0b00001111);
+ fprintf(stdout, "ADDR Master = %i\n",(bb[1][7] & 0b11110000) >> 4);
+ fprintf(stdout, "command = %i\n",(bb[1][6] & 0b00000111));