Update devices.cpp