Skip to content

Commit 063a668

Browse files
committed
rename lfs namespace
1 parent 0b0fc8e commit 063a668

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

libraries/Adafruit_LittleFS/examples/LFS_Format/LFS_Format.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include <Adafruit_LittleFS.h>
1616

17-
using namespace LittleFilesystem;
17+
using namespace Adafruit_LittleFS_Namespace;
1818

1919
// the setup function runs once when you press reset or power the board
2020
void setup()

libraries/Adafruit_LittleFS/examples/LFS_ListFiles/LFS_ListFiles.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
any redistribution
1313
*********************************************************************/
1414

15-
//#include <bluefruit.h>
1615
#include <Adafruit_LittleFS.h>
1716

18-
using namespace LittleFilesystem;
17+
using namespace Adafruit_LittleFS_Namespace;
1918

2019
/* This example print out Internal Flash contents up to
2120
* MAX_LEVEL level of directories (including root)

libraries/Adafruit_LittleFS/examples/LFS_ReadWrite/LFS_ReadWrite.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*********************************************************************/
1414

1515
#include <Adafruit_LittleFS.h>
16-
using namespace LittleFilesystem;
16+
using namespace Adafruit_LittleFS_Namespace;
1717

1818
#define FILENAME "/adafruit.txt"
1919
#define CONTENTS "Adafruit Little File System test file contents"

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "Adafruit_LittleFS.h"
2929
#include "flash/flash_nrf5x.h"
3030

31-
using namespace LittleFilesystem;
31+
using namespace Adafruit_LittleFS_Namespace;
3232

3333
#ifdef NRF52840_XXAA
3434
#define LFS_FLASH_ADDR 0xED000
@@ -150,9 +150,9 @@ bool Adafruit_LittleFS::format (bool eraseall)
150150
return true;
151151
}
152152

153-
LittleFilesystem::File Adafruit_LittleFS::open (char const *filepath, uint8_t mode)
153+
Adafruit_LittleFS_Namespace::File Adafruit_LittleFS::open (char const *filepath, uint8_t mode)
154154
{
155-
return LittleFilesystem::File(filepath, mode, *this);
155+
return Adafruit_LittleFS_Namespace::File(filepath, mode, *this);
156156
}
157157

158158
bool Adafruit_LittleFS::exists (char const *filepath)

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Adafruit_LittleFS
4444
// Open the specified file/directory with the supplied mode (e.g. read or
4545
// write, etc). Returns a File object for interacting with the file.
4646
// Note that currently only one file can be open at a time.
47-
LittleFilesystem::File open (char const *filename, uint8_t mode = FILE_READ);
47+
Adafruit_LittleFS_Namespace::File open (char const *filename, uint8_t mode = FILE_READ);
4848

4949
// Methods to determine if the requested file path exists.
5050
bool exists (char const *filepath);

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
3131
//--------------------------------------------------------------------+
3232

33-
using namespace LittleFilesystem;
33+
using namespace Adafruit_LittleFS_Namespace;
3434

3535
File::File (Adafruit_LittleFS &fs)
3636
{

libraries/Adafruit_LittleFS/src/Adafruit_LittleFS_File.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
// Forward declaration
3232
class Adafruit_LittleFS;
3333

34-
namespace LittleFilesystem
34+
namespace Adafruit_LittleFS_Namespace
3535
{
3636

3737
class File : public Stream

libraries/Bluefruit52Lib/src/utility/bonding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "bonding.h"
4040
#include "bluefruit.h"
4141

42-
using namespace LittleFilesystem;
42+
using namespace Adafruit_LittleFS_Namespace;
4343

4444
#define BOND_DEBUG 0
4545

0 commit comments

Comments
 (0)