Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
glynhudson committed Jun 14, 2022
1 parent d1a4ac1 commit 9cb156f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
.vscode
*.txt
CMakeLists.txt
15 changes: 6 additions & 9 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,15 @@ static int main_eventHandler(phevEvent_t *event)
{
printf("Register %02X\n",event->reg);
for (int i = 0; i < event->length; i++)
{

{
printf("%02X ", event->data[i]);
}
printf("\n");
}

if (opts->verbose)
{
if (event->reg == KO_WF_DATE_INFO_SYNC_EVR)
{
printf("Date sync 20%d-%d-%d %d:%0d:%0d\n", event->data[0], event->data[1], event->data[2], event->data[3], event->data[4], event->data[5]);
}
if (event->reg == KO_WF_DATE_INFO_SYNC_EVR)
{
printf("Date sync 20%d-%d-%d %d:%0d:%0d\n", event->data[0], event->data[1], event->data[2], event->data[3], event->data[4], event->data[5]);
}
}
switch (opts->command)
{
Expand Down

0 comments on commit 9cb156f

Please sign in to comment.