Skip to content

Commit 067458e

Browse files
committed
Utilize CONNECT macro.
1 parent 4a3feab commit 067458e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/Threading_Basics/Thermostat/Thermostat.ino

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ void setup()
1717
/* Connect the temperature sensor thread providing temperature readings
1818
* with the various temperature control unit threads.
1919
*/
20-
TemperatureSensor.temperature.connectTo(HeatingControl.temperature);
21-
TemperatureSensor.temperature.connectTo(AirConditionerControl.temperature);
22-
TemperatureSensor.temperature.connectTo(TemperatureSensorReporter.temperature);
20+
CONNECT(TemperatureSensor, temperature, HeatingControl, temperature);
21+
CONNECT(TemperatureSensor, temperature, AirConditionerControl, temperature);
22+
CONNECT(TemperatureSensor, temperature, TemperatureSensorReporter, temperature);
2323

2424
/* Start the individual threads for sensing the temperature
2525
* and controlling heating/air-conditioning based on the sensed

0 commit comments

Comments
 (0)