Merge branch 'next' into bsongis/Issue713_more_custom_functions
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
/.project
|
/.*project
|
||||||
/.settings
|
/.settings
|
||||||
|
|||||||
@@ -778,7 +778,7 @@ bool check(check_event_t event, uint8_t curr, const MenuFuncP *menuTab, uint8_t
|
|||||||
vertpos_t realPgOfs = s_pgOfs;
|
vertpos_t realPgOfs = s_pgOfs;
|
||||||
vertpos_t realMaxrow = maxrow;
|
vertpos_t realMaxrow = maxrow;
|
||||||
for (vertpos_t i=1; i<=maxrow; i++) {
|
for (vertpos_t i=1; i<=maxrow; i++) {
|
||||||
if (horTab[i] == HIDDEN_ROW) {
|
if (MAXCOL_RAW(i) == HIDDEN_ROW) {
|
||||||
realMaxrow--;
|
realMaxrow--;
|
||||||
if (i < l_posVert)
|
if (i < l_posVert)
|
||||||
realPosVert--;
|
realPosVert--;
|
||||||
@@ -790,7 +790,7 @@ bool check(check_event_t event, uint8_t curr, const MenuFuncP *menuTab, uint8_t
|
|||||||
else if (realPosVert<1+realPgOfs) realPgOfs = realPosVert-1;
|
else if (realPosVert<1+realPgOfs) realPgOfs = realPosVert-1;
|
||||||
s_pgOfs = realPgOfs;
|
s_pgOfs = realPgOfs;
|
||||||
for (vertpos_t i=1; i<=realPgOfs; i++) {
|
for (vertpos_t i=1; i<=realPgOfs; i++) {
|
||||||
if (horTab[i] == HIDDEN_ROW) {
|
if (MAXCOL_RAW(i) == HIDDEN_ROW) {
|
||||||
s_pgOfs++;
|
s_pgOfs++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -551,9 +551,11 @@ FRESULT f_readdir (DIR * rep, FILINFO * fil)
|
|||||||
fil->fattrib = (ent->d_type == DT_DIR ? AM_DIR : 0);
|
fil->fattrib = (ent->d_type == DT_DIR ? AM_DIR : 0);
|
||||||
#else
|
#else
|
||||||
if (ent->d_type == simu::DT_UNKNOWN) {
|
if (ent->d_type == simu::DT_UNKNOWN) {
|
||||||
|
fil->fattrib = 0;
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
lstat(ent->d_name, &buf);
|
if (stat(ent->d_name, &buf) == 0) {
|
||||||
fil->fattrib = (S_ISDIR(buf.st_mode) ? AM_DIR : 0);
|
fil->fattrib = (S_ISDIR(buf.st_mode) ? AM_DIR : 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fil->fattrib = (ent->d_type == simu::DT_DIR ? AM_DIR : 0);
|
fil->fattrib = (ent->d_type == simu::DT_DIR ? AM_DIR : 0);
|
||||||
@@ -564,6 +566,7 @@ FRESULT f_readdir (DIR * rep, FILINFO * fil)
|
|||||||
memset(fil->lfname, 0, SD_SCREEN_FILE_LENGTH);
|
memset(fil->lfname, 0, SD_SCREEN_FILE_LENGTH);
|
||||||
strncpy(fil->fname, ent->d_name, 13-1);
|
strncpy(fil->fname, ent->d_name, 13-1);
|
||||||
strcpy(fil->lfname, ent->d_name);
|
strcpy(fil->lfname, ent->d_name);
|
||||||
|
// TRACE("f_readdir(): %s", fil->fname);
|
||||||
return FR_OK;
|
return FR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user