Remove request commands without parser

This commit is contained in:
sqozz 2024-09-15 20:08:51 +02:00
parent 6eced6cc0d
commit d1728318c4

View file

@ -24,7 +24,7 @@ std::vector<std::string> pwr_on_query_cmds{
*/ */
// //
// Source/Input/Resolution settings // Source/Input/Resolution settings
"SOURCE?", // "SOURCE?", // TODO: implement parser
// Image settings // Image settings
/* /*
"BRIGHT?", "BRIGHT?",
@ -63,7 +63,7 @@ std::vector<std::string> pwr_on_query_cmds{
"AUDIOOUT?", "AUDIOOUT?",
*/ */
// //
"MUTE?", // "MUTE?", // TODO: implement parser
// Environment settings // Environment settings
/* /*
"HREVERSE?", "HREVERSE?",
@ -76,17 +76,17 @@ std::vector<std::string> pwr_on_query_cmds{
*/ */
// //
// Home Screen settings // Home Screen settings
"AUTOHOME?", // "AUTOHOME?", // TODO: implement parser
// Network settings // Network settings
"WLPWR?", // "WLPWR?", // TODO: implement parser
// Bluetooth // Bluetooth
"BTAUDIO?", // "BTAUDIO?", // TODO: implement parser
// Information // Information
"SIGNAL?", "SIGNAL?",
"SOURCELIST?", "SOURCELIST?"
// "SOURCELISTA?", // same as SOURCELIST // "SOURCELISTA?", // same as SOURCELIST
"LOGTO?", // "LOGTO?", // TODO: implement parser
"SNO?" // "SNO?" // Pushed on demand if sensor value is empty (e.g. after boot-up)
}; };
void tw7100Component::setup() { void tw7100Component::setup() {
@ -100,7 +100,10 @@ void tw7100Component::update() {
for (auto &cmd : pwr_off_query_cmds) { for (auto &cmd : pwr_off_query_cmds) {
cmd_queue.push_back(cmd); cmd_queue.push_back(cmd);
} }
if ((powered_->state)) {; if ((powered_->state)) {
//if (this->serial_->state.length() < 1) {
// cmd_queue.push_back("SNO?");
//}
for (auto &cmd : pwr_on_query_cmds) { for (auto &cmd : pwr_on_query_cmds) {
cmd_queue.push_back(cmd); cmd_queue.push_back(cmd);
} }