glidernet / diy-tracker

Do-it-Yourself OGN Tracker software
GNU General Public License v3.0
27 stars 18 forks source link

$POGNS is unable to set negative values for Tx power or frequency correction #6

Closed lyusupov closed 5 years ago

lyusupov commented 6 years ago

Suggested fix:

    $ diff  format.h.orig format.h
    69c69
    <      Len+=Read_UnsDec(Int, Inp); if(Sign=='-') Int=(-Int);
    ---
    >      Len+=Read_UnsDec(Int, Inp+Len); if(Sign=='-') Int=(-Int);
    $

It works good for me.