ESP_LOGI(TAG, "di=%d\n", di); // *** Wyświetla: „di=7” if(di) { int chri = 0; for(chri = 0; chri < di; chri++) { putchar(lfn[chri]); // *** Wyświetla: „Android” } putchar('\n'); } while (*p == '/' || *p == '\\') p++; /* Skip duplicated separators if exist */ *path = p; /* Return pointer to the next segment */ cf = (wc < ' ') ? NS_LAST : 0; /* Set last segment flag if end of the path */ #if FF_FS_RPATH != 0 if ((di == 1 && lfn[di - 1] == '.') || (di == 2 && lfn[di - 1] == '.' && lfn[di - 2] == '.')) { /* Is this segment a dot name? */ lfn[di] = 0; ESP_LOGI(TAG, "di=%d\n", di); // *** Wyświetla: „di=0” !!!!!jedenaście if(di) { int chri = 0; for(chri = 0; chri < di; chri++) { putchar(lfn[chri]); } putchar('\n'); } for (i = 0; i < 11; i++) { /* Create dot name for SFN entry */ dp->fn[i] = (i < di) ? '.' : ' '; } dp->fn[i] = cf | NS_DOT; /* This is a dot entry */ return FR_OK; } #endif while (di) { /* Snip off trailing spaces and dots if exist */ wc = lfn[di - 1]; if (wc != ' ' && wc != '.') break; di--; } lfn[di] = 0; /* LFN is created into the working buffer */ if (di == 0) { // *** tutaj ssprawdza i wraca twierdząc że błąd REP("di == 0") return FR_INVALID_NAME; /* Reject null name */ }