fixed compiler warning
This commit is contained in:
parent
df8cfae7a0
commit
ceda51b22b
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#include "touchpad.h"
|
#include "touchpad.h"
|
||||||
#include "glcd.h"
|
#include "glcd.h"
|
||||||
|
|
||||||
static struct cal cal = {
|
volatile static struct cal cal = {
|
||||||
1, 1, 0, 0
|
1, 1, 0, 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#define SET_CS(a) (TP_PORT->BSRR = 1 << (TP_CS + (a ? 0 : 16)))
|
#define SET_CS(a) (TP_PORT->BSRR = 1 << (TP_CS + (a ? 0 : 16)))
|
||||||
|
|
||||||
volatile struct cal {
|
struct cal {
|
||||||
float xm;
|
float xm;
|
||||||
float ym;
|
float ym;
|
||||||
float xn;
|
float xn;
|
||||||
|
|
Loading…
Add table
Reference in a new issue