Skip to content

Commit a9eb5e9

Browse files
author
Nathan Hui
committed
feat: Adds basic recorder functionality and test
1 parent 24cafec commit a9eb5e9

9 files changed

Lines changed: 305 additions & 237 deletions

File tree

src/cellular/deploy.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ int Deployment::open(const char* const name, Deployment::State_e state)
5555
{
5656
return 0;
5757
}
58-
strncpy(this->filename, name, NAME_MAX);
58+
strncpy(this->filename, name, SF_NAME_MAX);
5959
this->currentState = state;
6060
return 1;
6161
}
@@ -99,7 +99,7 @@ int Deployment::close(void)
9999
return 0;
100100
}
101101
this->currentFile = 0;
102-
memset(this->filename, 0, NAME_MAX);
102+
memset(this->filename, 0, SF_NAME_MAX);
103103
return 1;
104104
}
105105

@@ -160,7 +160,7 @@ int Deployment::remove(void)
160160
#endif
161161
return 0;
162162
}
163-
memset(this->filename, 0, NAME_MAX);
163+
memset(this->filename, 0, SF_NAME_MAX);
164164
this->currentFile = 0;
165165
return 1;
166166
}

src/cellular/deploy.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#ifndef __DEPLOY_HPP__
22
#define __DEPLOY_HPP__
33

4+
#include "product.hpp"
5+
46
#include <stddef.h>
57
#include <limits.h>
6-
78
class Deployment
89
{
910
public:
@@ -81,7 +82,7 @@ class Deployment
8182
Deployment(Deployment const&);
8283
int currentFile;
8384
State_e currentState;
84-
char filename[NAME_MAX];
85+
char filename[SF_NAME_MAX];
8586
};
8687

8788
#endif

0 commit comments

Comments
 (0)