From 7f51ffc8fb52f0fc7f5505b48b3b0f0d69a6b465 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Tue, 12 Apr 2022 17:42:41 +0200 Subject: [PATCH] use structs instead of classes --- linux/devices/startracker/StrHelper.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/linux/devices/startracker/StrHelper.h b/linux/devices/startracker/StrHelper.h index f34e96ce..435b6e82 100644 --- a/linux/devices/startracker/StrHelper.h +++ b/linux/devices/startracker/StrHelper.h @@ -173,8 +173,7 @@ class StrHelper : public SystemObject, public ExecutableObjectIF, public HasRetu static const size_t SIZE_IMAGE_PART = 1024; static const uint32_t FLASH_REGION_SIZE = 0x20000; - class ImageDownload { - public: + struct ImageDownload { static const uint32_t LAST_POSITION = 4095; }; @@ -199,15 +198,13 @@ class StrHelper : public SystemObject, public ExecutableObjectIF, public HasRetu BinarySemaphore semaphore; - class UploadImage { - public: + struct UploadImage { // Name including absolute path of image to upload std::string uploadFile; }; UploadImage uploadImage; - class DownloadImage { - public: + struct DownloadImage { // Path where the downloaded image will be stored std::string path; // Default name of downloaded image, can be changed via command @@ -215,8 +212,7 @@ class StrHelper : public SystemObject, public ExecutableObjectIF, public HasRetu }; DownloadImage downloadImage; - class FlashWrite { - public: + struct FlashWrite { // File which contains data to write when executing the flash write command std::string fullname; // The first region to write to @@ -229,8 +225,7 @@ class StrHelper : public SystemObject, public ExecutableObjectIF, public HasRetu }; FlashWrite flashWrite; - class FlashRead { - public: + struct FlashRead { // Path where the file containing the read data will be stored std::string path = ""; // Default name of file containing the data read from flash, can be changed via command