Skip to content

Commit

Permalink
Fix virtualWrite
Browse files Browse the repository at this point in the history
  • Loading branch information
hung-eoh committed Jan 3, 2025
1 parent 14c12e9 commit 3e85cf8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions linux/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@

ERA_MAJOR = 1
ERA_MINOR = 5
ERA_PATCH = 2
ERA_VERSION = "1.5.2"
ERA_FIRMWARE_VERSION = "1.5.2"
ERA_PATCH = 3
ERA_VERSION = "1.5.3"
ERA_FIRMWARE_VERSION = "1.5.3"

BUTTON_GPIO = 16

Expand Down
2 changes: 2 additions & 0 deletions src/ERa/ERaProtocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,7 @@ bool ERaProto<Transp, Flash>::sendTransport(ERaRsp_t& rsp) {
return false;
}

ERaInt_t prevId = rsp.id.getInt();
switch (rsp.type) {
case ERaTypeWriteT::ERA_WRITE_VIRTUAL_PIN: {
ERaInt_t configId = Base::getPinRp().findVPinConfigId(rsp.id.getInt(), rsp.param);
Expand All @@ -1483,6 +1484,7 @@ bool ERaProto<Transp, Flash>::sendTransport(ERaRsp_t& rsp) {
}

Base::updateValueAutomation(rsp);
rsp.id = prevId;
return true;
}
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/ERa/ERaVersion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define ERA_MAJOR 1
#define ERA_MINOR 5
#define ERA_PATCH 2
#define ERA_PATCH 3

#define ERA_VERSION_TO_STR_2(val) # val
#define ERA_VERSION_TO_STR(val) ERA_VERSION_TO_STR_2(val)
Expand All @@ -17,7 +17,7 @@
#define ERA_VERSION ERA_VERSION_TO_STR(ERA_MAJOR) "." \
ERA_VERSION_TO_STR(ERA_MINOR) "." \
ERA_VERSION_TO_STR(ERA_PATCH)
#define ERA_VERSION_1_5_2
#define ERA_VERSION_1_5_3

#if !defined(ERA_FIRMWARE_VERSION)
#define ERA_FIRMWARE_VERSION ERA_VERSION
Expand Down

0 comments on commit 3e85cf8

Please sign in to comment.