Fix gpio interrupt bug and modified output format