Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from forno/update-v1.2.4
Browse files Browse the repository at this point in the history
Update v1.2.4 with fix type alias
  • Loading branch information
forno authored Nov 4, 2016
2 parents 95b4ce5 + e207cc6 commit f5ff088
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(ics3 CXX)

SET(PROJECT_VER_MAJOR 1)
SET(PROJECT_VER_MINOR 2)
SET(PROJECT_VER_PATCH 3)
SET(PROJECT_VER_PATCH 4)
SET(PROJECT_VER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}")
SET(PROJECT_APIVER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}")

Expand Down
8 changes: 4 additions & 4 deletions include/core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
namespace ics {
class Core {
public:
using value = uint8_t;
using Container = std::vector<value>;
using IDContainerTx = std::array<value, 4>;
using IDContainerRx = std::array<value, 5>;
using value_type = uint8_t;
using Container = std::vector<value_type>;
using IDContainerTx = std::array<value_type, 4>;
using IDContainerRx = std::array<value_type, 5>;
explicit Core(const std::string&, speed_t); // touch by only libics3
~Core() noexcept;
Core(const Core&) = delete;
Expand Down
2 changes: 1 addition & 1 deletion include/ics3/eepparam.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace ics {
class EepParam {
public:
using type = uint16_t;
using size_type = std::size_t;
using TargetContainer = std::array<uint8_t, 64>;
using size_type = TargetContainer::size_type;
using InvalidChecker = type (&)(type, type, type);
enum Flag : type {
REVERSE = 0x01,
Expand Down
4 changes: 1 addition & 3 deletions include/ics3/eeprom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ namespace ics {
class EepRom {
friend ICS3; // for ICS3::getRom()
public:
using size_type = std::size_t;
static constexpr size_type length {64};
using Container = std::array<uint8_t, length>;
using Container = std::array<uint8_t, 64>;

EepParam get(EepParam) const;
void set(const EepParam&) noexcept;
Expand Down
2 changes: 1 addition & 1 deletion src/ics3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ static inline ics::Angle::rawType getReceiveAngle(const ics::Core::Container& rx
return (rx[4] << 7) | rx[5];
}

static inline ics::Core::value getCmd(const ics::Core::value head, const ics::ID& id) {
static inline ics::Core::value_type getCmd(const ics::Core::value_type head, const ics::ID& id) {
return head | id.get();
}

Expand Down

0 comments on commit f5ff088

Please sign in to comment.