Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Int, int8_t, int16_t values
Forum Updated to NodeBB v4.3 + New Features

Int, int8_t, int16_t values

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 249 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aftershocker1
    wrote on last edited by
    #1

    Hello

    I have am developing an application. It takes values from a PCB. A thread checks values and passes them accross to the main application. I am having a problem where the value changes then reverts back to -52. I have found a fix where instead on declaring the int8_t temperature in the .h I have just set it up in at the top of the .cpp. The setters and setters are still all declared in the .h.

    Any ideas as to wat I was doing wrong in the first instance and why it doesn't work when the int8_t is declared in the .h?

    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      It's impossible to give any answer without more information. Please show your code and explain how you are setting those values.

      From what you describe it seems to me that you have several instances of your class and read the value from one of them but are setting it on another one. But it's impossible for me to verify this.

      (Z(:^

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved