That has worked for me. Since it works off a 12 volt supply the ac connect will not supply the power to raise roof. In future you might want to connect 12 volt battery to a battery tender or similar device to maintain battery. The batteries will also last much longer if charged.