Skip to content

Commit

Permalink
Added debug messsages
Browse files Browse the repository at this point in the history
  • Loading branch information
VincidaB committed May 8, 2024
1 parent 84e9364 commit 156168f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ezbot_command_module/include/tirette.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ bool TiretteNode::init_gpiod(void)
if(gpiochip == NULL)
gpiochip = gpiod_chip_open_by_name("gpiochip0");
if(gpiochip == NULL)
{
printf("unable to open GPIO\n");
return false;
}
{
printf("unable to open GPIO\n");
return false;
}
printf("gpiochip successful = %d\n",gpiochip);

gpioline = gpiod_chip_get_line(gpiochip,gpioTirette);
if (gpioline == NULL)
{
printf("unable to get GPIO line\n");
return false;
}
printf("gpioTirette successful = %d\n",gpioTirette);

int temp;
Expand Down

0 comments on commit 156168f

Please sign in to comment.