Skip to content

Commit

Permalink
Merge pull request Chysn#41 from djphazer/BSS1.3
Browse files Browse the repository at this point in the history
Fix loading saved applet data
  • Loading branch information
benirose committed Oct 8, 2022
2 parents 33c0a0c + bd0dd42 commit f8abaa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion software/o_c_REV/APP_HEMISPHERE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ public:
{
int index = get_applet_index_by_id(values_[h]);
SetApplet(h, index);
uint64_t data = (uint64_t(values_[8 + h]) << 48) + (uint64_t(values_[6 + h]) << 32) + (values_[4 + h] << 16) + values_[2 + h];
uint64_t data =
(uint64_t(values_[8 + h]) << 48) |
(uint64_t(values_[6 + h]) << 32) |
(uint64_t(values_[4 + h]) << 16) |
(uint64_t(values_[2 + h]));
available_applets[index].OnDataReceive(h, data);
}
ClockSetup.OnDataReceive(0, uint64_t(values_[HEMISPHERE_CLOCK_DATA]));
Expand Down

0 comments on commit f8abaa6

Please sign in to comment.