Refactoring continued: Try to run lua scripts before the first LCD function
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user