Skip to content

Commit e2c54a0

Browse files
authored
Merge pull request #78 from Digitelektro/feature/meteor_m2-3
Feature/meteor m2 3
2 parents 76f26c0 + 2b63b91 commit e2c54a0

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ if(UNIX AND NOT APPLE)
152152
SET(CPACK_GENERATOR "DEB")
153153
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
154154
SET(CPACK_PACKAGE_VERSION_MINOR "5")
155-
SET(CPACK_PACKAGE_VERSION_PATCH "4")
155+
SET(CPACK_PACKAGE_VERSION_PATCH "5")
156156
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Digitelektro")
157157
SET(CPACK_DEBIAN_PACKAGE_HOMEPAGE "https://github.com/Digitelektro/MeteorDemod")
158158
SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION "Russian Meteor M2 weather satellite data decoder")

common/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
#define VERSION_MAJOR 2
55
#define VERSION_MINOR 5
6-
#define VERSION_FIX 4
6+
#define VERSION_FIX 5
77

88
#endif // VERSION_H

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ void saveImage(const std::string fileName, const cv::Mat& image) {
580580
void writeSymbolToFile(std::ostream& stream, const Wavreader::complex& sample) {
581581
int8_t outBuffer[2];
582582

583-
outBuffer[0] = static_cast<int8_t>(std::clamp(std::real(sample) * 127.0f, -128.0f, 127.0f));
584-
outBuffer[1] = static_cast<int8_t>(std::clamp(std::imag(sample) * 127.0f, -128.0f, 127.0f));
583+
outBuffer[0] = static_cast<int8_t>(std::clamp(std::imag(sample) * 127.0f, -128.0f, 127.0f));
584+
outBuffer[1] = static_cast<int8_t>(std::clamp(std::real(sample) * 127.0f, -128.0f, 127.0f));
585585

586586
stream.write(reinterpret_cast<char*>(outBuffer), sizeof(outBuffer));
587587
}

0 commit comments

Comments
 (0)