Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPIO input issue #1

Closed
ngminhtritm opened this issue Nov 16, 2019 · 1 comment
Closed

GPIO input issue #1

ngminhtritm opened this issue Nov 16, 2019 · 1 comment

Comments

@ngminhtritm
Copy link

Hi guy,
I found that an issue from your code, you don't return value in GPIO::input(const string& channel), so this function has the random value.
Please review it.
BR

@@ -557,7 +560,7 @@ int GPIO::input(const string& channel){
}

int GPIO::input(int channel){

  • input(to_string(channel));
  • return input(to_string(channel));
    }
@yomuevans
Copy link

hi cant compile for some reason. Here's the output to "g++ -o simple_out.cpp -lJetsonGPIO"

/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/Scrt1.o: In function _start': (.text+0x18): undefined reference to main'
(.text+0x1c): undefined reference to `main'
collect2: error: ld returned 1 exit status

@pjueon pjueon closed this as completed Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants