DeviceReplyMap: periodic member is uint8_t #87

Closed
opened 2020-05-28 12:50:18 +02:00 by muellerr · 4 comments
Owner

Is there a specific reason why periodic is a uint8_t instead of a boolean variable?

Same question also for PoolVariableIF valid member. Why not just make it boolean (which propably also makes the definitions VALID and INVALID obsolete) ? If uint8_t are required, a getter function for uint8_t could be used (even casting isnt necessary).

Is there a specific reason why periodic is a `uint8_t` instead of a `bool`ean variable? Same question also for `PoolVariableIF` valid member. Why not just make it boolean (which propably also makes the definitions VALID and INVALID obsolete) ? If uint8_t are required, a getter function for uint8_t could be used (even casting isnt necessary).
muellerr added the
question
label 2020-05-28 12:50:32 +02:00
muellerr changed title from DeviceReplyMap: periodic member is `uint8_t` to DeviceReplyMap: periodic member is uint8_t 2020-05-28 12:50:39 +02:00
Owner

As written in #111, I think DHB::DeviceReplyInfo::periodic would be better as bool.

As for the PoolVariableIF valid member, maybe in the future there will be different kinds of valid, so I would keep it for now.

As written in #111, I think `DHB::DeviceReplyInfo::periodic` would be better as `bool`. As for the `PoolVariableIF` valid member, maybe in the future there will be different kinds of valid, so I would keep it for now.
mohr added
feature
API Change
and removed
question
labels 2020-06-18 14:59:51 +02:00
Owner

While technically 1 and 0 as used currently can be cast to bool, I would suggest updating user code. Added API Change label.

While technically 1 and 0 as used currently can be cast to bool, I would suggest updating user code. Added API Change label.
Author
Owner

I think I integrated this already in the current state for the local data pools, but propably not in the current request.. But I think it would be a good idea to integrate the current request #44 first.

I think I integrated this already in the current state for the local data pools, but propably not in the current request.. But I think it would be a good idea to integrate the current request #44 first.
Author
Owner

was merged when DHB refactoring was merged

was merged when DHB refactoring was merged
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fsfw/fsfw#87
No description provided.