frux-c / uhf_rfid

this is a uhf app for the flipper zero, that uses the YRM100 module.
225 stars 8 forks source link

Can't compile due to undefined variable #6

Closed MrButlerTron closed 1 year ago

MrButlerTron commented 1 year ago

I attempted to compile this with ufbt and fbt, both times I get the error that 'FontBatteryPercent' undeclared . on line 84 in file uhf_scene_device_info.c I tried to search through the code as well as the Flipper firmware code for a similarly named variable and could not find it.

This seems to prevent compilation.

Am I missing a step or is there an easy fix to this?

frux-c commented 1 year ago

Which branch did you try to compile?

MrButlerTron commented 1 year ago

I think master, I didn't notice there were others. Which one would you recommend?

frux-c commented 1 year ago

Master is fine.

Change the font from FontBatteryPercent to a different font like FontKeyboard, and see if that works. If that doesn't work, maybe try importing <canvas.h> temporarly in the uhf_app_i.h file.

MrButlerTron commented 1 year ago

Changing it to FontKeyboard allows it to compile. Thank you.