Skip to content

Commit

Permalink
Allow automatic typecasting from Device::Type to Partition::FullType
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Mar 9, 2024
1 parent 5a04f54 commit 234c3d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sming/Components/Storage/src/include/Storage/Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Device : public LinkedObjectTemplate<Device>
* @brief Storage type
*/
enum class Type : uint8_t {
partitionType = uint8_t(Partition::Type::storage),
#define XX(type, value, desc) type = value,
STORAGE_TYPE_MAP(XX)
#undef XX
Expand Down

0 comments on commit 234c3d1

Please sign in to comment.