Update device.c