Flash saving. SD card work (for gruvin9x / ersky9x boards)

This commit is contained in:
bsongis
2012-05-29 17:06:40 +00:00
parent a462949bc2
commit 249e6f2e63
12 changed files with 166 additions and 102 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ void menuMainView(uint8_t event)
#if defined(PCBV4)
for (uint8_t i=0; i<NUM_ROTARY_ENCODERS; i++) {
int16_t val = getRotaryEncoder(i);
int8_t len = limit((int16_t)0, (int16_t)(((val+1024) * BAR_HEIGHT) / 2048), (int16_t)BAR_HEIGHT); // TODO uint16_t?
int8_t len = limit((int16_t)0, (int16_t)(((val+1024) * BAR_HEIGHT) / 2048), (int16_t)BAR_HEIGHT);
#if defined(EXTRA_ROTARY_ENCODERS)
#define V_BAR_W 5
V_BAR(SCREEN_WIDTH/2-8+V_BAR_W*i, SCREEN_HEIGHT-8, len)