summaryrefslogtreecommitdiff
path: root/apps/plugins/beatbox/beatbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/beatbox/beatbox.c')
-rw-r--r--apps/plugins/beatbox/beatbox.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/beatbox/beatbox.c b/apps/plugins/beatbox/beatbox.c
index 45f0eb70b5..ef391987fb 100644
--- a/apps/plugins/beatbox/beatbox.c
+++ b/apps/plugins/beatbox/beatbox.c
@@ -180,8 +180,6 @@ const unsigned char * drumNames[]={
180long gmbuf[BUF_SIZE*NBUF]; 180long gmbuf[BUF_SIZE*NBUF];
181 181
182int quit=0; 182int quit=0;
183const struct plugin_api * rb;
184
185 183
186#define STATE_STOPPED 0 184#define STATE_STOPPED 0
187#define STATE_PAUSED 1 185#define STATE_PAUSED 1
@@ -234,13 +232,11 @@ int editState=EDITSTATE_PATTERN;
234int playState=STATE_STOPPED, stepFlag=0; 232int playState=STATE_STOPPED, stepFlag=0;
235 233
236 234
237enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 235enum plugin_status plugin_start(const void* parameter)
238{ 236{
239 int retval = 0; 237 int retval = 0;
240 238
241 PLUGIN_IRAM_INIT(api) 239 PLUGIN_IRAM_INIT(rb)
242
243 rb = api;
244 240
245 rb->lcd_setfont(0); 241 rb->lcd_setfont(0);
246 242