Skip to content

Commit

Permalink
Updated DataLogger.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mimansamaheshwari committed Sep 13, 2019
1 parent a914cc6 commit d787999
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataLoggerModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void DataLoggerModule::sendSettings(void(*function)(void))
void DataLoggerModule::createFile(String FileName)
{
columnNumber=0;
Dabble.sendModuleFrame(DATALOGGER_ID,0,FILENAME,1,new FunctionArg(FileName.length(),&FileName[0]));
Dabble.sendModuleFrame(DATALOGGER_ID,0,FILENAME,1,new FunctionArg(FileName.length(),(byte*)(&FileName[0])));
}

void DataLoggerModule::createColumn(String colName)
Expand Down Expand Up @@ -49,7 +49,7 @@ void DataLoggerModule::createColumn(String colName)
//end
uint8_t a = columnNumber+1;
String sendColumnName = columnName[columnNumber];
Dabble.sendModuleFrame(DATALOGGER_ID,0,COLUMNNAME,2,new FunctionArg(1,&a),new FunctionArg(sendColumnName.length(),&sendColumnName[0]));
Dabble.sendModuleFrame(DATALOGGER_ID,0,COLUMNNAME,2,new FunctionArg(1,&a),new FunctionArg(sendColumnName.length(),(byte*)(&sendColumnName[0])));
columnNumber++;
}

Expand Down Expand Up @@ -114,7 +114,7 @@ void DataLoggerModule::send(String col,String data)
return;
}

Dabble.sendModuleFrame(DATALOGGER_ID,0,DATATYPE_CHAR,2,new FunctionArg(1,&columnFlag),new FunctionArg(data.length(),&data[0]));
Dabble.sendModuleFrame(DATALOGGER_ID,0,DATATYPE_CHAR,2,new FunctionArg(1,&columnFlag),new FunctionArg(data.length(),(byte*)(&data[0])));

}

Expand Down

0 comments on commit d787999

Please sign in to comment.