diff --git a/simulators/simftdx101.c b/simulators/simftdx101.c index ba49b8621..79615b792 100644 --- a/simulators/simftdx101.c +++ b/simulators/simftdx101.c @@ -32,6 +32,7 @@ int na = 0; int ex039 = 0; int keyspd = 20; int split = 0; +int power=50; // ID 0310 == 310, Must drop leading zero typedef enum nc_rigid_e @@ -265,6 +266,15 @@ int main(int argc, char *argv[]) { sscanf(buf, "AI%d", &ai); } + else if (strcmp(buf, "PC;") == 0) + { + SNPRINTF(buf, sizeof(buf), "PC%d;", power); + n = write(fd, buf, strlen(buf)); + } + else if (strncmp(buf, "PC", 2) == 0) + { + sscanf(buf, "PC%d", &power); + } else if (strcmp(buf, "SH0;") == 0) { SNPRINTF(buf, sizeof(buf), "SH0%d;", sh);