|
|
@ -22,18 +22,18 @@
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
namespace KaleidoscopePlugins {
|
|
|
|
namespace HostOS {
|
|
|
|
namespace HostOS {
|
|
|
|
bool
|
|
|
|
bool
|
|
|
|
Focus (const char *command) {
|
|
|
|
Focus(const char *command) {
|
|
|
|
if (strcmp_P (command, PSTR ("hostos.type")) != 0)
|
|
|
|
if (strcmp_P(command, PSTR("hostos.type")) != 0)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|
|
|
|
|
|
|
|
if (Serial.peek () == '\n') {
|
|
|
|
if (Serial.peek() == '\n') {
|
|
|
|
Serial.println (::HostOS.os ());
|
|
|
|
Serial.println(::HostOS.os());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
uint8_t os = Serial.parseInt ();
|
|
|
|
uint8_t os = Serial.parseInt();
|
|
|
|
::HostOS.os ((KaleidoscopePlugins::HostOS::Type) os);
|
|
|
|
::HostOS.os((KaleidoscopePlugins::HostOS::Type) os);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Serial.read ();
|
|
|
|
Serial.read();
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|