Open strellis opened 3 years ago
Oh that’s a good catch actually!
You should just be able to remove the (std::nothrow) part - that’s a C++ thing that makes it return null and not throw an exception if it cannot allocate the buffer. It’s probably not there anymore because they probably disable exceptions by default now.
Do note that the current version is incomplete. Wasn’t able to get it to read frame buffers using the SPI library. Might be different for faster chipsets but I wanted to rewrite it to take advantage of DMA with the STM32 chips. Just haven’t really gotten there yet in my life, with work and all.
Best of luck!
On Thu, Mar 11, 2021 at 5:05 PM Steven Trellis @.***> wrote:
Thank you for the code. I keep getting the same issue below and I have no clue how to address it. Thank you for any help!
sketch\LeptonFLiR+Protected.cpp: In member function 'void LeptonFLiR::advanceNextFrame()': sketch\LeptonFLiR+Protected.cpp:94:32: error: 'nothrow' is not a member of 'std' _nextFrame = new (std::nothrow) LeptonFLiR::FrameSettings(_lastFrame, _frameCounter++);
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NachtRaveVL/Lepton-FLiR-Arduino/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWDX6AFR3NOLRO22NI3YLTDFLD3ANCNFSM4ZBKLD3Q .
I will be trying to make some progress on it this weekend; I'll make a pull request if I get anywhere, but I'm doubtful I'll get far. Right now, your code here is the closest to getting a Lepton 3.5 and Teensy 4.0 working together.
Thank you for the code. I keep getting the same issue below and I have no clue how to address it. Thank you for any help!
sketch\LeptonFLiR+Protected.cpp: In member function 'void LeptonFLiR::advanceNextFrame()': sketch\LeptonFLiR+Protected.cpp:94:32: error: 'nothrow' is not a member of 'std' _nextFrame = new (std::nothrow) LeptonFLiR::FrameSettings(_lastFrame, _frameCounter++);