Allow screen to be seen by other files (needed by widget_name.c)

This commit is contained in:
Pim van Pelt
2017-11-26 17:32:29 +01:00
parent 5f07481d22
commit fb7e2a650d

View File

@ -6,7 +6,7 @@
#include "stmpe610.h" #include "stmpe610.h"
#include "mongoose-touch.h" #include "mongoose-touch.h"
static struct screen_t *screen = NULL; struct screen_t *screen = NULL;
static long map(long x, long in_min, long in_max, long out_min, long out_max) { static long map(long x, long in_min, long in_max, long out_min, long out_max) {
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min; return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;