Update devices.c