Skip to content

Commit 093081f

Browse files
committed
fix travis build
1 parent f96e9b4 commit 093081f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app_component.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void CLAppComponent::dumpPrefs() {
2525
Serial.println(s);
2626
}
2727

28-
int CLAppComponent::readJsonIntVal(jparse_ctx_t *jctx_ptr, const char* token) {
28+
int CLAppComponent::readJsonIntVal(jparse_ctx_t *jctx_ptr, char* token) {
2929
int res=0;
3030
if(json_obj_get_int(jctx_ptr, token, &res) == OS_SUCCESS)
3131
return res;

src/app_component.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class CLAppComponent {
1111
public:
1212
// Sketch Info
1313

14-
int start(){};
15-
int loadPrefs(){};
16-
int savePrefs(){};
14+
int start(){return OS_SUCCESS;};
15+
int loadPrefs(){return OS_SUCCESS;};
16+
int savePrefs(){return OS_SUCCESS;};
1717

1818
void dumpPrefs();
1919
void removePrefs();
@@ -24,19 +24,19 @@ class CLAppComponent {
2424
bool isDebugMode(){return debug_mode;};
2525

2626
protected:
27-
void setTag(char *t) {tag = t;};
27+
void setTag(const char *t) {tag = t;};
2828

2929
/// @brief reads the Int value from JSON context by token.
3030
/// @param jctx_ptr JSON context pointer
3131
/// @param token
3232
/// @return value, or 0 if fail
33-
int readJsonIntVal(jparse_ctx_t *jctx, const char* token);
33+
int readJsonIntVal(jparse_ctx_t *jctx, char* token);
3434

3535
int parsePrefs(jparse_ctx_t *jctx);
3636

3737

3838
private:
39-
char * tag;
39+
const char * tag;
4040

4141
bool debug_mode = false;
4242

0 commit comments

Comments
 (0)