Skip to content

mcp960x temperature read functions do not deal with sign correctly #725

@belaz49

Description

@belaz49

The issue

mcp960x_get_thermocouple_temp(), mcp960x_get_delta_temp(), and mcp960x_get_ambient_temp() functions do not handle sign correctly resulting in wrong reporting of negative temperatures. Note that ambient temperature have different sign positions than the other two.

Which SDK are you using?

esp-idf

Which version of SDK are you using?

5.4

Which build target have you used?

  • esp32
  • esp32s2
  • esp32s3
  • esp32c2
  • esp32c5
  • esp32c6
  • esp32c61
  • esp32h2
  • esp32p4
  • esp8266
  • other

Component causing the issue

mcp960x

Anything in the logs that might be useful for us?

Additional information or context

No response

Confirmation

  • This report is not a question nor a request for drivers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions