sylvandb / gruvin9x

Automatically exported from code.google.com/p/gruvin9x
0 stars 0 forks source link

Patch for /trunk/firmware/src/file.cpp #77

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
file.cpp: In member function ‘void RlcFile::DisplayProgressBar(uint8_t)’:
file.cpp:602: error: no matching function for call to ‘limit(int, unsigned 
int, int)’

#elif defined (PROGRESS_VERTICAL_BAR)
    uint8_t len = s_eeDirtyMsk ? 1 : limit(1, 7 - (uint8_t)(m_rlc_len/m_ratio), 7);

Original issue reported on code.google.com by gbir...@gmail.com on 28 Nov 2011 at 10:20

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by gru...@gmail.com on 28 Nov 2011 at 8:11

GoogleCodeExporter commented 8 years ago
Right!

Original comment by bson...@gmail.com on 28 Nov 2011 at 8:26

GoogleCodeExporter commented 8 years ago
even better with this one (some flash saved):

uint8_t len = s_eeDirtyMsk ? 1 : limit((uint8_t)1, (uint8_t)(7 - 
(m_rlc_len/m_ratio)), (uint8_t)7);

Original comment by bson...@gmail.com on 28 Nov 2011 at 8:28