[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 619e130483a1c97a14896
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-21 14:16:59
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 619e130483a1c97a14896e67c9eefbafd0058c1f (commit) from 4df4820ad9e71b7131ee7b298cc4fe1caf982d81 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 619e130483a1c97a14896e67c9eefbafd0058c1f Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Jan 21 08:15:55 2021 -0600 Add 32-bit values to testrigcaps.c This may still need changes for different compilers with different structure packing diff --git a/tests/testrigcaps.c b/tests/testrigcaps.c index 4a223461..5ea84b43 100644 --- a/tests/testrigcaps.c +++ b/tests/testrigcaps.c @@ -14,10 +14,11 @@ int main() unsigned long offset = p2 - p1; printf("offset vfo_list=%ld\n", offset); int expected = 13280; - if (offset != expected) + int expected32 = 10144; + if (offset != expected && offset != expected32) { printf("offset of vfo_list has changed!!!\n"); - printf("was %d, now %lu\n", expected, offset ); + printf("64-bit was %d, 32-bit was %d, now %lu\n", expected, expected32, offset ); retcode = 1; } @@ -26,10 +27,11 @@ int main() printf("offset power_max=%ld\n", offset); expected = 13696; - if (offset != expected) + expected32 = 10448; + if (offset != expected && offset != expected32) { printf("offset of power_max has changed!!!\n"); - printf("was %d, now %lu\n", expected, offset ); + printf("64-bit was %d, 32-bit was %d, now %lu\n", expected, expected32, offset ); retcode = 1; } ----------------------------------------------------------------------- Summary of changes: tests/testrigcaps.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |