From 12fe73a6dd718e70ec782a3f6342046faa06ff5d Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Wed, 29 Oct 2014 13:24:46 -0400 Subject: [PATCH] umtrx: fix register temperature sensor --- host/umtrx_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/umtrx_impl.cpp b/host/umtrx_impl.cpp index 4cf4fd67..625f681e 100644 --- a/host/umtrx_impl.cpp +++ b/host/umtrx_impl.cpp @@ -226,7 +226,7 @@ umtrx_impl::umtrx_impl(const device_addr_t &device_addr) { config_temp_c(std::string(1, name)); _tree->create(mb_path / "sensors" / "temp"+std::string(1, name)) - .subscribe(boost::bind(&umtrx_impl::read_temp_c, this, std::string(1, name))); + .publish(boost::bind(&umtrx_impl::read_temp_c, this, std::string(1, name))); } ////////////////////////////////////////////////////////////////