Update hardware.cpp