Bugfix, returned the wrong type in Device::methodId()

This commit is contained in:
Micke Prag 2009-02-06 09:07:22 +00:00
parent 5c5cac6e1d
commit 0faba7cdae
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ int Device::dim(unsigned char level){
return TELLSTICK_ERROR_METHOD_NOT_SUPPORTED;
}
bool Device::methodId( const std::string &methodName ) {
int Device::methodId( const std::string &methodName ) {
if (methodName.compare("turnon") == 0) {
return TELLSTICK_TURNON;
}