ToniA / arduino-heatpumpir

An Arduino library to control split-unit heatpumps over Infrared
GNU General Public License v2.0
389 stars 141 forks source link

Cannot compile #33

Open moskovskiy82 opened 7 years ago

moskovskiy82 commented 7 years ago

Took your example from https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/HeatpumpIRController/HeatpumpIRController.ino

But seems cannot compile. I have already redone several clean installations of arduiono IDE 1.06 and 1.8.3 but failed with the same error. Always complains on "is protected" Can be different libraries but error always the same

libraries\HeatpumpIR/CarrierHeatpumpIR.h:63:5: error: 'CarrierHeatpumpIR::CarrierHeatpumpIR()' is protected

Libraries used Using library HeatpumpIR at version 1.0.7 in folder: Using library Wire at version 1.0 in folder: Using library SI7021 in folder: Using library Timer in folder: Using library SPI at version 1.0 in folder: Using library MySensors at version 2.1.1 in folder:

ToniA commented 7 years ago

Oh, I should make a new version of the example. The problem simply is that now the 'CarrierHeatpumpIR' is a virtual class, and there are a number of implementations of it. Starting from row 68, just comment out the ones which cause problems, or replace them with the concrete implementation.