Update devices.cc

devices.cc:475:15: warning: enumeration value 'baddevice' not handled in switch
      [-Wswitch]
      switch (d->kind) {
              ^