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