瀏覽代碼

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;