I am using the laser driver ONET4201LD to drive a laser (QL85F6SA). The maximum current rating of the laser is 35mA, for which I decided the current flown to be around 20mA. As per the equations given in the datasheet of the laser driver, (equation 13 specifically) I got the Rmodset as 13.25kohm. Keeping a safety margin, I put the resistance on MODSET pin as 15.81 kohms using a parallel resistance network with fixed resistors and a digital potentiometer. I connected the laser cathode to MOD+ and anode to Vcc=3.3V. On the MOD- pin I connected a resistor of 20 ohms and other end of resistor to Vcc=3.3V. Now when I measured voltage across the resistor terminals, the voltage drop is near 0.8V which gives 41mA flowing through the resistor (20 ohms), almost double of what I calculated. Assuming that same current would flow from the laser also, the laser burns which actually happened. Could someone please tell me if there is a problem with the laser driver or am I making some mistake which I am not able to identify and fix. TIA.