smaller tweaks
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2021-08-19 18:26:00 +02:00
parent e821a9700a
commit ef75d92415
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -58,7 +58,7 @@ public:
void performControlOperation() override; void performControlOperation() override;
/** /**
* Generate a file containing the chip lock/unlock states inside /tmp/chip_status.txt * Generate a file containing the chip lock/unlock states inside /tmp/chip_prot_status.txt
* @return * @return
*/ */
static ReturnValue_t generateChipStateFile(); static ReturnValue_t generateChipStateFile();
@ -68,11 +68,11 @@ public:
ReturnValue_t updateProtInfo(bool regenerateChipStateFile = true); ReturnValue_t updateProtInfo(bool regenerateChipStateFile = true);
/** /**
* Checks whether the target chip and copy are writeprotected and protect them if they are * Checks whether the target chip and copy are write protected and protect set them to a target
* not * state where applicable.
* @param targetChip * @param targetChip
* @param targetCopy * @param targetCopy
* @param protect * @param protect Target state
* @param protOperationPerformed [out] Can be used to determine whether any operation * @param protOperationPerformed [out] Can be used to determine whether any operation
* was performed * was performed
* @param updateProtFile Specify whether the protection info file is updated * @param updateProtFile Specify whether the protection info file is updated
@ -145,6 +145,7 @@ private:
* Index 3: Chip 1 Copy 1 * Index 3: Chip 1 Copy 1
*/ */
std::array<bool, 4> protArray; std::array<bool, 4> protArray;
PeriodicOperationDivider opDivider;
ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap, ReturnValue_t initializeLocalDataPool(localpool::DataPool& localDataPoolMap,
LocalDataPoolManager& poolManager) override; LocalDataPoolManager& poolManager) override;
@ -172,7 +173,6 @@ private:
const uint8_t *data, size_t size); const uint8_t *data, size_t size);
ReturnValue_t actionPerformReboot(const uint8_t *data, size_t size); ReturnValue_t actionPerformReboot(const uint8_t *data, size_t size);
PeriodicOperationDivider opDivider;
void performWatchdogControlOperation(); void performWatchdogControlOperation();
ReturnValue_t handleProtInfoUpdateLine(std::string nextLine); ReturnValue_t handleProtInfoUpdateLine(std::string nextLine);