- misplaced macro fixed
- volume size added to volume listing
This commit is contained in:
		
							parent
							
								
									d7a5a49394
								
							
						
					
					
						commit
						bcd655fd8d
					
				@ -1,15 +1,15 @@
 | 
			
		||||
#ifndef EMBPART_FAT32_H
 | 
			
		||||
#define EMBPART_FAT32_H
 | 
			
		||||
#ifndef CORE_EMBPART_FS_FAT32_FAT32
 | 
			
		||||
#define CORE_EMBPART_FS_FAT32_FAT32
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
#ifdef __linux
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include "../../MassStorage.h"
 | 
			
		||||
#include "../fs_driver.h"
 | 
			
		||||
 | 
			
		||||
#ifdef __linux
 | 
			
		||||
#define MSG(...) printf(__VA_ARGS__)
 | 
			
		||||
#endif
 | 
			
		||||
#endif /* CORE_EMBPART_FS_FAT32_FAT32 */
 | 
			
		||||
 | 
			
		||||
#define FAT32_CHS_PART_ID (0x0B)
 | 
			
		||||
#define FAT32_LBA_PART_ID (0x0C)
 | 
			
		||||
 | 
			
		||||
@ -186,7 +186,7 @@ void mnt_list(const char *dir) {
 | 
			
		||||
    // if
 | 
			
		||||
    if ((dir[0] == '\0') || ((dir[0] == MNT_DIRSEP) && (dir[1] == '\0'))) {
 | 
			
		||||
        for (uint8_t i = 0; i < mtab.mounted_vols; i++) {
 | 
			
		||||
            MSG("/%s      VOLUME\n", mtab.vols[i].mnt_name);
 | 
			
		||||
            MSG("/%s     %.3f MB VOLUME\n", mtab.vols[i].mnt_name, mtab.vols[i].part_size * 1E-06);
 | 
			
		||||
        }
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user