Skip to content

Commit

Permalink
Missing include for TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick authored and philmoz committed Aug 21, 2024
1 parent 2e42505 commit 05fd7bd
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions radio/src/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
#include <new>
#include <stdarg.h>

#include "lua/lua_states.h"

#define CLI_COMMAND_MAX_ARGS 8
#define CLI_COMMAND_MAX_LEN 256
Expand Down
2 changes: 2 additions & 0 deletions radio/src/gui/colorlcd/libui/bitmapbuffer_draw_extra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "telemetry/telemetry_sensors.h"
#include "translations.h"

#include <cmath>

// Drawing functions used by Lua API

void BitmapBuffer::invertRect(coord_t x, coord_t y, coord_t w, coord_t h,
Expand Down
1 change: 1 addition & 0 deletions radio/src/gui/colorlcd/mainview/view_statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "tasks.h"
#include "tasks/mixer_task.h"
#include "mixer_scheduler.h"
#include "lua/lua_states.h"

class StatisticsViewPage : public PageTab
{
Expand Down
9 changes: 4 additions & 5 deletions radio/src/lua/api_colorlcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static int luaLcdDrawSwitch(lua_State *L)
int s = luaL_checkinteger(L, 3);
LcdFlags flags = luaL_optinteger(L, 4, 0);
flags = colorToRGB(flags);
drawSwitch(luaLcdBuffer, x, y, s, flags);
luaLcdBuffer->drawSwitch(x, y, s, flags);

return 0;
}
Expand Down Expand Up @@ -506,7 +506,7 @@ static int luaLcdDrawSource(lua_State *L)
int s = luaL_checkinteger(L, 3);
LcdFlags flags = luaL_optinteger(L, 4, 0);
flags = colorToRGB(flags);
drawSource(luaLcdBuffer, x, y, s, flags);
luaLcdBuffer->drawSource(x, y, s, flags);

return 0;
}
Expand Down Expand Up @@ -760,7 +760,7 @@ static int luaLcdDrawBitmapPattern(lua_State *L)
auto y = luaL_checkinteger(L, 3);
auto flags = (LcdFlags)luaL_optinteger(L, 4, 0);
flags = colorToRGB(flags);
luaLcdBuffer->drawBitmapPattern(x, y, reinterpret_cast<const uint8_t*>(m), flags);
luaLcdBuffer->drawBitmapPattern(x, y, reinterpret_cast<const MaskBitmap*>(m), flags);
}

return 0;
Expand Down Expand Up @@ -799,8 +799,7 @@ static int luaLcdDrawBitmapPatternPie(lua_State *L)
int endAngle = luaL_checkinteger(L, 5);
LcdFlags flags = luaL_optinteger(L, 6, 0);
flags = colorToRGB(flags);
luaLcdBuffer->drawBitmapPatternPie(x, y, reinterpret_cast<const uint8_t*>(m),
flags, startAngle, endAngle);
luaLcdBuffer->drawBitmapPatternPie(x, y, reinterpret_cast<const MaskBitmap*>(m), flags, startAngle, endAngle);
}

return 0;
Expand Down
3 changes: 1 addition & 2 deletions radio/src/lua/api_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@

#define LUA_LIB

#include "edgetx.h"
#include "lua_api.h"
#include "api_filesystem.h"

#include "FatFs/ff.h"

// garbage collector for luaDir
static int dir_gc(lua_State* L)
{
Expand Down
1 change: 1 addition & 0 deletions radio/src/lua/lua_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include "lua_api.h"
#include "lua_event.h"
#include "lua_widget_factory.h"
#include "lua_states.h"

#include "touch.h"
Expand Down
1 change: 1 addition & 0 deletions radio/src/lua/lua_widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include "window.h"
#include "widget.h"
#include "lua_states.h"
#include "lua_api.h"
#include "lua_lvgl_widget.h"

Expand Down
1 change: 0 additions & 1 deletion radio/src/lua/lua_widget_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "lua_api.h"
#include "lua_states.h"


#define MAX_INSTRUCTIONS (20000/100)

static void l_pushtableint(const char * key, int value)
Expand Down
1 change: 1 addition & 0 deletions radio/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "hal/abnormal_reboot.h"
#include "hal/usb_driver.h"
#include "edgetx.h"
#include "lua/lua_states.h"

#if defined(LIBOPENUI)
#include "libopenui.h"
Expand Down

0 comments on commit 05fd7bd

Please sign in to comment.