reto271 / DataLoggerHeating_Luxtronik

Monitors Heating Data of a Luxtronik Heating Controller. Monitores, stores compact as binaries, converts to CSV and graphically displays.
GNU General Public License v3.0
1 stars 0 forks source link

Data Type Issue on Target #15

Closed reto271 closed 4 years ago

reto271 commented 4 years ago

Compiling on the target: /home/pi/git/DataLoggerHeating_Luxtronik/DataDecoder/src/FileDataReader.cpp:172:66: warning: left shift count >= width of type [-Wshift-count-overflow] time += static_cast(m_pBuffer[arrayPos]) << 32;

-> change to time += static_cast(m_pBuffer[arrayPos]) << 32;

reto271 commented 4 years ago

Linux PC: sizeof(std::time_t) : 8 Raspi: sizeof(std::time_t) : 4

reto271 commented 4 years ago

The code regarding this issue is no longer in FileDataReader, it is moved to the FileDataWriterCSV::writeData. The issue is still present. There is already an issue registered (#25) -> Close this issue, it is a "duplicate" of #25.