Update CCDevice.cpp