Assert error when run thethingsnetwork example with sudo


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

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