Ignore:
Timestamp:
2008-10-29T22:29:00+01:00 (16 years ago)
Author:
ramack
Message:

added support to configure the device

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/globalsat/src/org/kaintoch/gps/globalsat/dg100/Dg100Config.java

    r10378 r11555  
    156156         * @return Returns the disableLogDist.
    157157         */
    158         public byte getDisableLogDist()
    159         {
    160                 return disableLogDist;
     158        public boolean getDisableLogDist()
     159        {
     160                return disableLogDist != 0;
    161161        }
    162162
     
    164164         * @param disableLogDist The disableLogDist to set.
    165165         */
    166         public void setDisableLogDist(byte disableLogDist)
    167         {
    168                 this.disableLogDist = disableLogDist;
     166        public void setDisableLogDist(boolean disableLogDist)
     167        {
     168            this.disableLogDist = (byte)(disableLogDist ? 1 : 0);
    169169        }
    170170
     
    172172         * @return Returns the disableLogSpeed.
    173173         */
    174         public byte getDisableLogSpeed()
    175         {
    176                 return disableLogSpeed;
     174        public boolean getDisableLogSpeed()
     175        {
     176                return disableLogSpeed != 0;
    177177        }
    178178
     
    180180         * @param disableLogSpeed The disableLogSpeed to set.
    181181         */
    182         public void setDisableLogSpeed(byte disableLogSpeed)
    183         {
    184                 this.disableLogSpeed = disableLogSpeed;
     182        public void setDisableLogSpeed(boolean disableLogSpeed)
     183        {
     184            this.disableLogSpeed = (byte)(disableLogSpeed ? 1 : 0);
    185185        }
    186186
Note: See TracChangeset for help on using the changeset viewer.