fixed Button
authorLogxen <logxen@hotmail.com>
Sun, 17 Feb 2013 17:56:32 +0000 (09:56 -0800)
committerLogxen <logxen@hotmail.com>
Sun, 17 Feb 2013 17:56:32 +0000 (09:56 -0800)
src/modules/utils/button/Button.cpp

index 11d9dbe..9458bf7 100644 (file)
@@ -26,7 +26,7 @@ void Button::on_module_loaded(){
 void Button::on_config_reload(void* argument){
     this->toggle                      = this->kernel->config->value( button_checksum, this->name_checksum, toggle_checksum )->by_default(false)->as_bool();
     this->switch_state                = this->kernel->config->value( button_checksum, this->name_checksum, normal_state_checksum )->by_default(true)->as_bool();
-    this->button.from_string          ( this->kernel->config->value( button_checksum, this->name_checksum, input_pin_checksum )->by_default("2.12")->as_string() )->as_input();
+    this->button->from_string          ( this->kernel->config->value( button_checksum, this->name_checksum, input_pin_checksum )->by_default("2.12")->as_string() )->as_input();
     this->on_m_code                   = "M" + this->kernel->config->value( button_checksum, this->name_checksum, on_m_code_checksum          )->required()->as_string() + "\r\n";
     this->off_m_code                  = "M" + this->kernel->config->value( button_checksum, this->name_checksum, off_m_code_checksum         )->required()->as_string() + "\r\n";
 }