heimskr / flipperzero-scd30

A Flipper Zero application to interface with SCD30 carbon dioxide sensors.
GNU General Public License v3.0
9 stars 1 forks source link

Compile Issue #1

Open RogueMaster opened 1 year ago

RogueMaster commented 1 year ago

Do you know how these errors can be fixed?

applications/external/scd30/main.cpp:63:1: error: label 'bail' defined but not used [-Werror=unused-label] 63 bail: ^~~~ applications/external/scd30/main.cpp: In function 'void timer_cb(FuriMessageQueue*)': applications/external/scd30/main.cpp:73:39: error: missing initializer for member 'EventMessage::event' [-Werror=missing-field-initializers] 73 EventMessage message{EventID::Tick};
heimskr commented 1 year ago

I left this project in an unfinished and messed up state, it's kind of abandoned and was really just an experiment anyway. Not really useful for anyone, sorry about that :P

heimskr commented 1 year ago

Actually, wait, no, that was one of my other repos. Sorry. This repo should be working. I'll look into it.

heimskr commented 1 year ago

This application was made a long time ago and the APIs seem to have changed significantly since then so it'll take a while. I also personally don't think this application is useful enough or high-quality enough to be included in any CFW, seeing as it was a learning exercise for me, but if you really want to it's fine to include it in your CFW.

heimskr commented 1 year ago

With the latest commit it now compiles under the latest commit of your firmware repo. I currently don't have enough time to test it properly; all I know is that it compiles. I should have time about 24 hours from now.

RogueMaster commented 1 year ago

With the latest commit it now compiles under the latest commit of your firmware repo. I currently don't have enough time to test it properly; all I know is that it compiles. I should have time about 24 hours from now.

Cool, thanks! Test compiling with the cc.scons file having errors on. I turn them off right now since there are two apps with some halting errors...

RogueMaster commented 1 year ago

Now the only error that shows is:

applications/external/scd30/main.cpp: In function 'void timer_cb(FuriMessageQueue*)': applications/external/scd30/main.cpp:81:39: error: missing initializer for member 'EventMessage::event' [-Werror=missing-field-initializers] 81 EventMessage message{EventID::Tick};