Assert error when run thethingsnetwork example with sudo

Hi,

I’m using a raspberry pi 3b and a Dragino gps/hat v1.4 as a sender. When I run the sample code https://github.com/ernstdevreede/lmic_pi with sudo, I get this error:

Failure
radio.c 664

this does not happen if I launch it normally. It would seem a pin connection problem, could anyone please help me?

Thank you all