mob41 / broadlink-java-api

A clean Broadlink API for Java
MIT License
22 stars 25 forks source link

fix bug in class CmdPacket and RMDevice #7

Closed gsnable closed 6 years ago

gsnable commented 6 years ago
  1. CmdPacket‘s constructor fix a bug which is because of porting from python to java …The program is ported from python. Byte in python in the range is 0 to 256, but in java, it is in the range of -128 to 127. Adding a judgment to ensure that payload[i] is a positive number and checksum is aways growing.

  2. RMDevice's getTemp() Payload is from 0x38 of data

gsnable commented 6 years ago
  1. Removed duplicate send statement from BLDevice's sendPkt method
mob41 commented 6 years ago

The pull request is closed due to break changes.