mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] Fix Ion::getSerialNumber for simulator.
Change-Id: Id6a616695bc43718751a3e3861d0410aa0b35416
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user