Skip to content

Commit

Permalink
Fix compile warnings on 32-bit arch
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Aug 7, 2024
1 parent 18010bb commit 0d6cf2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
version: [ "20.04", "22.04", "24.04", "24.10" ]
version: [ "20.04", "22.04", "24.04" ]
arch: [ "arm32v7", "arm64v8", "amd64"]

steps:
Expand Down
4 changes: 2 additions & 2 deletions src/tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ bool Transmitter::send_packet(const uint8_t *buf, size_t size, uint8_t flags)
{
if(fec_delay > 0)
{
struct timespec t = { .tv_sec = fec_delay / 1000000,
.tv_nsec = (fec_delay % 1000000) * 1000 };
struct timespec t = { .tv_sec = (time_t)(fec_delay / 1000000),
.tv_nsec = (suseconds_t)(fec_delay % 1000000) * 1000 };

int rc = clock_nanosleep(CLOCK_MONOTONIC, 0, &t, NULL);

Expand Down

0 comments on commit 0d6cf2c

Please sign in to comment.