From 999208fc87910bc74f0bc1b3047985c2542b3571 Mon Sep 17 00:00:00 2001 From: Vadim Sychev Date: Wed, 27 Jul 2022 15:20:53 +0300 Subject: [PATCH] =?UTF-8?q?dev(UML-981):=20=D0=98=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B1=D0=B0=D0=B3=D0=B0.=20?= =?UTF-8?q?=D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D0=B5=20=D1=88=D0=BB=D1=8E=D1=82=D1=81=D1=8F=20=D0=B2=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5=D1=80=20?= =?UTF-8?q?=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D0=BE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 749ef63..0cdef4f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,8 +15,8 @@ using namespace std; uint32_t Echo_Gain = 0; struct EchoData { - uint32_t data_i; float data_f; + uint32_t data_i; }; union EchoDataMem @@ -48,8 +48,8 @@ int main(int argc, char * argv[]) endian_convert_32((uint8_t*)&Echo_inpCycData.data.data_f); endian_convert_32((uint8_t*)&Echo_inpCycData.data.data_i); - Echo_inpCycData.data.data_f = 0.0f; - Echo_inpCycData.data.data_i = 0; + Echo_outCycData.data.data_f = 0.0f; + Echo_outCycData.data.data_i = 0; AppSettings app_settings = { .EthDevName = "enp6s1", @@ -149,7 +149,7 @@ int main(int argc, char * argv[]) { std::this_thread::sleep_for(std::chrono::milliseconds(1000)); ++ix; - std::cout << "tick: " << ix << endl; + std::cout << "tick: " << ix << endl; } return 0;