travisgoodspeed / md380tools

Firmware patches for the TYT-MD380 handheld radio.
804 stars 244 forks source link

Mic bargraph silent #823

Closed f1rmb closed 7 years ago

f1rmb commented 7 years ago

Hi, This get rid of one GCC warning, and keep the mic bargraph hidden when app menu is displayed.

Cheers.

Daniel

travisgoodspeed commented 7 years ago

I'll be happy to merge this once all tests are passing, but a function prototype seems to be missing.

src/display.c: In function 'draw_micbargraph':
src/display.c:95:5: error: implicit declaration of function 'Menu_IsVisible' [-Werror=implicit-function-declaration]
     if( gui_opmode2 == OPM2_MENU || Menu_IsVisible() ) {
     ^
cc1: all warnings being treated as errors
make[3]: *** [display.o] Error 1
f1rmb commented 7 years ago

Oops, I guessed app menu was always used ;-). Fix on the go.

Cheers.