diff --git a/src/DataLoggerModule.cpp b/src/DataLoggerModule.cpp index 80f7f1e..abb0a58 100644 --- a/src/DataLoggerModule.cpp +++ b/src/DataLoggerModule.cpp @@ -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) @@ -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++; } @@ -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]))); }