I am connecting the Lepton FLIR thermal scanner to my Raspberry Pi and I've gotten everything setup and working but when I try to run the program all I see is a red box surrounded by black.
According to SparkFun, I could fix this problem by unplugging and then plugging back in the camera, but this didn't work for me. I searched somewhere else and I found this solution, but it's telling me to edit the LeptonThread.cpp file, but I can't figure out where to add it.
Can anyone on here help me break down what I need to do? I've written the bash script and I've opened the LeptonThread.cpp
file and looked through it, but I can't figure out where to add the code shown.
Where in the LeptonThread.cpp
do I add the code in this solution, and then what do I need to do with it?