     template <class T, void (T::*TMethod)(void)>
     static void method_stub(void* object_ptr) {
         T* p = static_cast<T*>(object_ptr);
-        return (p->*TMethod)(); // #2
+        return (p->*TMethod)();
     }
 };
 

    const int8_t DONE=0;
    Timer t;

    AnalogRead voltage_car;
    AnalogRead voltage_220;
    AnalogRead voltage_vbat;

    DigitalWrite relay_car_220_loader;
    DigitalWrite relay_vbat;
    DigitalWrite relay_car;
    DigitalWrite relay_inverter_net;

    int16_t times;


    }
};

template <int8_t port>
class DigitalWrite {
  private:
    int8_t state;
  public:
    void setup() {
      pinMode(port, OUTPUT);
      state = LOW;
    }

