mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-14 17:57:28 -05:00
More NCurses Tweaks
More NCurses Tweaks --Clarify extra call and data information lines --Add Data SRC and TGT to NCurses for LRRP and other things --OCD nitpicks
This commit is contained in:
@@ -225,7 +225,7 @@ void Process34Data(dsd_opts * opts, dsd_state * state, unsigned char tdibits[98]
|
||||
//LRRP
|
||||
if ( (state->dmr_34_rate_sf[slot][0] & 0x7F) == 0x45) //Start LRRP now
|
||||
{
|
||||
sprintf ( state->dmr_lrrp[state->currentslot][0], "LRRP - ");
|
||||
//sprintf ( state->dmr_lrrp[state->currentslot][0], "LRRP - ");
|
||||
fprintf (stderr, "%s ", KMAG);
|
||||
//fprintf (stderr, "\n IP4 Header"); //Not sure this is accurate info IP4 Header?
|
||||
//fprintf (stderr, "\n Data Blocks [%d]", state->dmr_34_rate_sf[5]);
|
||||
@@ -454,7 +454,12 @@ void ProcessDataData(dsd_opts * opts, dsd_state * state, uint8_t info[196], uint
|
||||
fprintf (stderr, " %d.%d.%d.%d", (DmrDataByte[4] & 0x3F), DmrDataByte[5], DmrDataByte[6], DmrDataByte[7]); //not sure if these are right or not
|
||||
fprintf (stderr, "[%d]", (DmrDataByte[5] <<16 ) + (DmrDataByte[6] <<8 ) + DmrDataByte[7] );
|
||||
}
|
||||
|
||||
if (1 == 1) //already setting by current slot, no need for checking first
|
||||
{
|
||||
sprintf ( state->dmr_lrrp[state->currentslot][1], "SRC [%d] TGT [%d] ",
|
||||
( (DmrDataByte[2] <<16 ) + (DmrDataByte[3] << 8) + DmrDataByte[4]),
|
||||
( (DmrDataByte[5] <<16 ) + (DmrDataByte[6] <<8 ) + DmrDataByte[7]) );
|
||||
}
|
||||
if (DmrDataByte[0] == 0x01)
|
||||
{
|
||||
fprintf (stderr, "\n LRRP Control ACK - ");
|
||||
@@ -1173,7 +1178,7 @@ void Process12Data(dsd_opts * opts, dsd_state * state, uint8_t info[196], uint8_
|
||||
//LRRP
|
||||
if ( (state->dmr_12_rate_sf[slot][0] & 0x7F) == 0x45) //Start LRRP now
|
||||
{
|
||||
sprintf ( state->dmr_lrrp[state->currentslot][0], "LRRP - ");
|
||||
//sprintf ( state->dmr_lrrp[state->currentslot][0], "LRRP - ");
|
||||
fprintf (stderr, "%s ", KMAG);
|
||||
//fprintf (stderr, "\n IP4 Header"); //Not sure this is accurate info IP4 Header?
|
||||
//fprintf (stderr, "\n Data Blocks [%d]", state->dmr_34_rate_sf[5]);
|
||||
|
||||
@@ -199,14 +199,14 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||
{
|
||||
for (short i = 0; i < 6; i++)
|
||||
{
|
||||
//sprintf (state->dmr_lrrp[0][i], "");
|
||||
sprintf (state->dmr_lrrp[0][i], "");
|
||||
}
|
||||
}
|
||||
if (state->dmrburstR == 16 || state->carrier == 0)
|
||||
{
|
||||
for (short i = 0; i < 6; i++)
|
||||
{
|
||||
//sprintf (state->dmr_lrrp[1][i], "");
|
||||
sprintf (state->dmr_lrrp[1][i], "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -624,7 +624,8 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||
printw ("FID: [%02X] SVC: [%02X] ", state->dmr_fid, state->dmr_so);
|
||||
printw ("%s ", DMRBusrtTypes[state->dmrburstL]);
|
||||
printw ("\n");
|
||||
printw ("| | "); //10 spaces
|
||||
//printw ("| | "); //10 spaces
|
||||
printw ("| V XTRA | "); //10 spaces
|
||||
//Burger King
|
||||
if(state->dmrburstL == 16 && state->payload_mi == 0 && (state->dmr_so & 0xCF) == 0x40) //4F or CF mask?
|
||||
{
|
||||
@@ -673,7 +674,8 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
printw ("\n");
|
||||
//Alias Blocks and Embedded GPS
|
||||
printw ("| | "); //10 spaces
|
||||
//printw ("| | "); //10 spaces
|
||||
printw ("| D XTRA | ");
|
||||
if(state->dmrburstL == 16) //only during call
|
||||
{
|
||||
attron(COLOR_PAIR(5));
|
||||
@@ -722,7 +724,8 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||
printw ("FID: [%02X] SVC: [%02X] ", state->dmr_fidR, state->dmr_soR);
|
||||
printw ("%s ", DMRBusrtTypes[state->dmrburstR]);
|
||||
printw ("\n");
|
||||
printw ("| | "); //12 spaces
|
||||
//printw ("| | "); //12 spaces
|
||||
printw ("| V XTRA | "); //10 spaces
|
||||
|
||||
//Burger King 2
|
||||
if(state->dmrburstR == 16 && state->payload_miR == 0 && (state->dmr_soR & 0xCF) == 0x40) //4F or CF mask?
|
||||
@@ -772,7 +775,8 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state)
|
||||
}
|
||||
printw ("\n");
|
||||
//Alias Blocks and Embedded GPS
|
||||
printw ("| | "); //10 spaces
|
||||
//printw ("| | ");
|
||||
printw ("| D XTRA | ");
|
||||
if(state->dmrburstR == 16) //only during call
|
||||
{
|
||||
attron(COLOR_PAIR(5));
|
||||
|
||||
Reference in New Issue
Block a user