A surgical stapler, comprising: a drive system; an electric motor mechanically coupled to the drive system; a battery electrically couplable to the electric motor; and a control system electrically connected to the electric motor, characterized in that: the control system comprises: an H-bridge circuit comprising a high side and a low side, wherein the low side of the H-bridge circuit comprises: first and second switching devices (3110, 3112); and a first resistive heating element electrically connected in series with the first switching device; a first temperature sensing device thermally coupled to the first resistive heating element; and a first temperature correlation system electrically coupled to the first temperature sensing device, wherein the control system is configured to control a first force applied to the drive system based on a first current measured in the first temperature correlation system wherein the first temperature correlation system comprises: a first controller; a second resistive heating element thermally and electrically isolated from the first resistive heating element; a second temperature sensing device thermally coupled to the second resistive heating element and electrically coupled to the controller; and a sensor configured to measure the first current. a drive system; an electric motor mechanically coupled to the drive system; a battery electrically couplable to the electric motor; and a control system electrically connected to the electric motor, characterized in that: the control system comprises: an H-bridge circuit comprising a high side and a low side, wherein the low side of the H-bridge circuit comprises: first and second switching devices (3110, 3112); and a first resistive heating element electrically connected in series with the first switching device; a first temperature sensing device thermally coupled to the first resistive heating element; and a first temperature correlation system electrically coupled to the first temperature sensing device, wherein the control system is configured to control a first force applied to the drive system based on a first current measured in the first temperature correlation system wherein the first temperature correlation system comprises: a first controller; a second resistive heating element thermally and electrically isolated from the first resistive heating element; a second temperature sensing device thermally coupled to the second resistive heating element and electrically coupled to the controller; and a sensor configured to measure the first current. an H-bridge circuit comprising a high side and a low side, wherein the low side of the H-bridge circuit comprises: first and second switching devices (3110, 3112); and a first resistive heating element electrically connected in series with the first switching device; first and second switching devices (3110, 3112); and a first resistive heating element electrically connected in series with the first switching device; a first temperature sensing device thermally coupled to the first resistive heating element; and a first temperature correlation system electrically coupled to the first temperature sensing device, wherein the control system is configured to control a first force applied to the drive system based on a first current measured in the first temperature correlation system wherein the first temperature correlation system comprises: a first controller; a second resistive heating element thermally and electrically isolated from the first resistive heating element; a second temperature sensing device thermally coupled to the second resistive heating element and electrically coupled to the controller; and a sensor configured to measure the first current. a first controller; a second resistive heating element thermally and electrically isolated from the first resistive heating element; a second temperature sensing device thermally coupled to the second resistive heating element and electrically coupled to the controller; and a sensor configured to measure the first current.