spaceconcordia / SpacecraftSoftware

Space Concordia
Apache License 2.0
7 stars 0 forks source link

Change sensor comm interface to no longer loop in receiveFromInput() until a c string is sent #25

Open philip-brink opened 6 years ago

philip-brink commented 6 years ago
    int index = 0;
    char result[512];
    while (readingFifoBuffer[index] != '\0') {
        result[index] = readingFifoBuffer[index];
        index++;
    }
    result[index] = '\0';
    return std::string(result);