1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Updated current switch states display

This commit is contained in:
gstellenberg
2009-05-31 11:46:40 -05:00
parent 1045923258
commit 63053bd097

View File

@@ -145,7 +145,8 @@ void LoadSwitchStates( PRHandle proc )
switches[i].state = procSwitchStates[i];
}
fprintf(stderr, "\nCurrent Switch States: 0 : ");
int zero = 0;
fprintf(stderr, "\nCurrent Switch States: %3d : ", zero);
for (i = 0; i < kPRSwitchPhysicalLast + 1; i++)
{
fprintf(stderr, "%d ", switches[i].state);
@@ -153,7 +154,7 @@ void LoadSwitchStates( PRHandle proc )
{
printf("\n");
if (i != kPRSwitchPhysicalLast)
fprintf(stderr, "Current Switch States: %d : ", i);
fprintf(stderr, "Current Switch States: %3d : ", i+1);
}
}
fprintf(stderr, "\n");