You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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));
}
The text was updated successfully, but these errors were encountered:
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
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){
}
The text was updated successfully, but these errors were encountered: