'Returns current extruder temperature in degrees Celsius as an integer'

def getTemp(self):

    self._autoTempRange()
    (rawHeat, calibration) = self._getRawTemp()
    while ((rawHeat == 255) or (rawHeat == 0)):
        time.sleep(0.1)
        self._autoTempRange()
    res = self._calculateResistance(rawHeat, calibration)
    temp = self._calculateTemperature(res)
    return round(temp, 1)
