Re: [Hamlib-developer] [Hamlib/Hamlib] 972d79: Round watt values to whole number >= 10 and 1 deci..
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: George B. <geo...@gm...> - 2024-02-14 06:07:46
|
It should be noted that the code added to rigs/kenwood/ts890.c does ABSOLUTELY NOTHING to achieve the purpose of this commit that the old code doesn't. Aside from the broken test (undefined behavior), the results don't change. Why is that? Because the cal_table said so. All values less than 11 returned from the SM command map to integer watts; 1=1 watt, 2=2 watts, etc, so there are no fractions involved. Values above 10 do map to fractions and are rounded to whole numbers, and that's probably more precision than the data has. On 2/13/24 17:40, Michael Black via Hamlib-developer wrote: > Branch: refs/heads/master > Home: https://github.com/Hamlib/Hamlib > Commit: 972d792a4f82f010c9f8ef77e86ddc364dba7be1 > https://github.com/Hamlib/Hamlib/commit/972d792a4f82f010c9f8ef77e86ddc364dba7be1 > Author: Mike Black W9MDB <mdb...@ya...> > Date: 2024-02-13 (Tue, 13 Feb 2024) > > Changed paths: > M rigs/kenwood/ts590.c > M rigs/kenwood/ts890s.c > > Log Message: > ----------- > Round watt values to whole number >= 10 and 1 decimal place < 10 > > > > > _______________________________________________ > Hamlib-developer mailing list > Ham...@li... > https://lists.sourceforge.net/lists/listinfo/hamlib-developer |