[ion] Fix Ion::getSerialNumber for simulator.

Change-Id: Id6a616695bc43718751a3e3861d0410aa0b35416
This commit is contained in:
Léa Saviot
2018-04-09 16:27:12 +02:00
parent 0419713de0
commit 0e578fa0e6

View File

@@ -1,6 +1,7 @@
extern "C" {
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
}
#include <chrono>
@@ -116,6 +117,6 @@ void Ion::msleep(long ms) {
}
}
const char * Ion::serialNumber() {
return "Simulator";
void Ion::getSerialNumber(char * buffer) {
strlcpy(buffer, "Simulator", Ion::SerialNumberLength+1);
}