Forráskód Böngészése

Fix bug in DevicePlayerV4

lishengyin 4 hónapja
szülő
commit
d4ea20c78e

BIN
lib/libgsd_core.so


BIN
lib/libgsd_modules.so


BIN
lib/libgsd_plugins.so


+ 3 - 3
modules/Expel/src/DevicePlayerV4.cpp

@@ -140,7 +140,7 @@ namespace gsd
     int8_t DevicePlayerV4::Open(std::string DeviceId, uint8_t* data, int& length){
         ControlerMsg gasControl;
         gasControl.deviceId = atoi(DeviceId.c_str());
-        if(gasControl.deviceId == 3) gasControl.deviceId = 0;
+        //if(gasControl.deviceId == 3) gasControl.deviceId = 0;
         gasControl.msgId = DEVICEGASV3_COMMAND_PLAY_NOW;
         gasControl.data = 0x00;
         length = 10;
@@ -157,7 +157,7 @@ namespace gsd
     int8_t DevicePlayerV4::Close(std::string DeviceId, uint8_t* data, int& length){
         ControlerMsg gasControl;
         gasControl.deviceId = atoi(DeviceId.c_str());
-        if(gasControl.deviceId == 3) gasControl.deviceId = 0;
+        //if(gasControl.deviceId == 3) gasControl.deviceId = 0;
         gasControl.msgId = DEVICEGASV3_COMMAND_STOP;
         gasControl.data = 0x00;
         length = 10;
@@ -173,7 +173,7 @@ namespace gsd
     int8_t DevicePlayerV4::Fire(std::string DeviceId, uint8_t* data, int& length){
         ControlerMsg gasControl;
         gasControl.deviceId = atoi(DeviceId.c_str());
-        if(gasControl.deviceId == 3) gasControl.deviceId = 0;
+        //if(gasControl.deviceId == 3) gasControl.deviceId = 0;
         gasControl.msgId = DEVICEGASV3_COMMAND_PLAY_NOW;
         gasControl.data = 0x00;
         length = 10;