Browse Source

Fix bug in DevicePlayerV4

lishengyin 4 months ago
parent
commit
d4ea20c78e
4 changed files with 3 additions and 3 deletions
  1. BIN
      lib/libgsd_core.so
  2. BIN
      lib/libgsd_modules.so
  3. BIN
      lib/libgsd_plugins.so
  4. 3 3
      modules/Expel/src/DevicePlayerV4.cpp

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;