Bugfix, returned the wrong type in Device::methodId()
This commit is contained in:
parent
5c5cac6e1d
commit
0faba7cdae
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace TelldusCore {
|
|||
int getModel() const;
|
||||
void setModel( int intModel );
|
||||
|
||||
static bool methodId( const std::string &methodName );
|
||||
static int methodId( const std::string &methodName );
|
||||
|
||||
#ifdef _LINUX
|
||||
void setDevice(const std::string &device);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue