rename connect_1to1 argument
@@ -20,12 +20,10 @@ class SensESPApp {
void setup_standard_devices(ObservableValue<String>* hostname);
void setup_custom_devices();
- // TODO: generalize so that first arg can be any observable
-
template<typename T, typename U>
- void connect_1to1(T* device, U* transform) {
- device->attach([device, transform](){
- transform->set_input(device->get());
+ void connect_1to1(T* obs, U* transform) {
+ obs->attach([obs, transform](){
+ transform->set_input(obs->get());
});
}
