Refactoring continued: Try to run lua scripts before the first LCD function

This commit is contained in:
Damjan Adamic
2014-12-06 15:36:10 +01:00
parent fac8571c29
commit 8aeb35c912
10 changed files with 371 additions and 190 deletions
+1 -4
View File
@@ -41,11 +41,8 @@
uint32_t readKeys()
{
register uint32_t d = GPIOD->IDR;
#if !defined(REV9E)
register uint32_t e = GPIOE->IDR;
#else
register uint32_t f = GPIOF->IDR;
#endif
register uint32_t result = 0;
#if defined(REV9E)
@@ -55,7 +52,7 @@ uint32_t readKeys()
#endif
result |= 0x02 << KEY_ENTER;
#if !defined(REV9E)
#if !defined(REV9E) || defined(SIMU)
if (e & PIN_BUTTON_PLUS)
result |= 0x02 << KEY_PLUS;
if (e & PIN_BUTTON_MINUS)