diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index cf529c07c4..fc24346090 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c @@ -26,8 +26,3 @@ void backlight_time(int dummy) { (void)dummy; } - -int battery_level(void) -{ - return 73; -} diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile index c91342fa9e..c546c62dd3 100644 --- a/uisimulator/x11/Makefile +++ b/uisimulator/x11/Makefile @@ -73,7 +73,7 @@ CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall APPCFLAGS = $(DEBUG) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(APPINCLUDES) -W -Wall -FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c usb.c mpeg.c +FIRMSRCS = chartables.c lcd.c sprintf.c id3.c debug.c usb.c mpeg.c power.c APPS = main.c tree.c menu.c credits.c main_menu.c\ playlist.c showtext.c wps.c settings.c @@ -224,6 +224,9 @@ $(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c $(OBJDIR)/stubs.o: ../common/stubs.c $(CC) $(CFLAGS) -c $< -o $@ +$(OBJDIR)/power.o: $(DRIVERS)/power.c + $(CC) $(CFLAGS) -c $< -o $@ + # these ones are simulator-specific