Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MelamudMichael committed Feb 29, 2024
2 parents d57d476 + c724a8d commit 6e5425b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: |
git clone https://github.com/eclipse-zenoh/zenoh-c.git
cd zenoh-c && mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/local
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --target install --config Release -- -j
- name: Create up-client-zenoh-cpp Conan package
Expand Down Expand Up @@ -76,4 +76,4 @@ jobs:
if: always()
steps:
- name: Check whether all jobs pass
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")'
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")'
2 changes: 2 additions & 0 deletions pubsub/src/main_pub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ std::uint8_t* getTime() {
}

std::uint8_t* getRandom() {

int32_t val = std::rand();
static std::uint8_t buf[4];
std::memcpy(buf, &val, sizeof(val));
Expand All @@ -73,6 +74,7 @@ std::uint8_t* getRandom() {
}

std::uint8_t* getCounter() {

static std::uint8_t counter = 0;
++counter;

Expand Down

0 comments on commit 6e5425b

Please sign in to comment.