浏览代码

Fix bug in DevicePlayerV4

lishengyin 4 月之前
父节点
当前提交
d4ea20c78e
共有 4 个文件被更改,包括 3 次插入3 次删除
  1. 二进制
      lib/libgsd_core.so
  2. 二进制
      lib/libgsd_modules.so
  3. 二进制
      lib/libgsd_plugins.so
  4. 3 3
      modules/Expel/src/DevicePlayerV4.cpp

二进制
lib/libgsd_core.so


二进制
lib/libgsd_modules.so


二进制
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;