Skip to content

Commit 4ab7f5b

Browse files
committed
new option GPS disk type (flash or card)
1 parent e817b70 commit 4ab7f5b

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

BBBikeGPS.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ sub BBBikeGPS::gps_interface {
115115
$modobj->transfer(-file => $file,
116116
-res => $res,
117117
-test => $extra_args{-test},
118-
-top => $top);
118+
-top => $top,
119+
-gpsgarmindisktype => $gps_garmin_disk_type
120+
);
119121
if ($do_gps_upload_hist) {
120122
BBBikeGPS::gps_upload_history($route_obj, -gpsrouteinfo => $gps_route_info);
121123
}

BBBikeGlobalVars.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ use vars qw(
147147
$run_under_kde $kde
148148
$use_xwd_if_possible $str_history $nearest_orte
149149
$standard_menubar $auto_install_cpan $ask_quit $gps_device
150+
$gps_garmin_disk_type
150151
$do_gps_upload_hist $gps_upload_dir
151152
$outline_i
152153
$without_zoom_factor $coord_output_int

GPS/BBBikeGPS/MountedDevice.pm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
#
44
# Author: Slaven Rezic
55
#
6-
# Copyright (C) 2014,2015,2016,2017,2018,2020,2021,2023,2024 Slaven Rezic. All rights reserved.
6+
# Copyright (C) 2014,2015,2016,2017,2018,2020,2021,2023,2024,2025 Slaven Rezic. All rights reserved.
77
# This package is free software; you can redistribute it and/or
88
# modify it under the same terms as Perl itself.
99
#
10-
11-
# WWW: http://www.rezic.de/eserte/
10+
# WWW: https://github.com/eserte/bbbike
1211
#
1312

1413
{
@@ -68,6 +67,7 @@
6867
my $res = $args{-res};
6968
my $ofile = $res->{file} || _status_message("FATAL ERROR: -res.file is missing", "die");
7069
my $route = $res->{route};
70+
my $gps_garmin_disk_type = $args{-gpsgarmindisktype};
7171

7272
local $ENV{BBBIKE_DEBUG_BBBIKEGPS_MOUNTEDDEVICE} = $ENV{BBBIKE_DEBUG_BBBIKEGPS_MOUNTEDDEVICE};
7373
if ($args{-test}) {
@@ -121,6 +121,7 @@
121121
+{ files => [$dest] };
122122
},
123123
with_tty => 0, # assume we're called always in a Tk-like environment
124+
garmin_disk_type => $gps_garmin_disk_type,
124125
);
125126

126127
}

bbbike

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5407,7 +5407,18 @@ dazu verwendet wird",
54075407
label => M"GPS-Transfer",
54085408
longhelp => M"Methode f�r das �bertragen von GPS-Routen/Tracks auf ein GPS-Ger�t.",
54095409
var => \$gps_transfer,
5410-
],
5410+
],
5411+
['gpsgarmindisktype','=s',undef,
5412+
strict => 1,
5413+
choices => [
5414+
[M('Voreinstellung'), undef],
5415+
[M('interner Speicher'), 'flash'],
5416+
[M('SD-Karte'), 'card'],
5417+
],
5418+
label => M"GPS-Disktyp",
5419+
longhelp => M"Disktyp des GPS-Ger�ts f�r Routen-Uploads",
5420+
var => \$gps_garmin_disk_type,
5421+
],
54115422
['gpsdevice','=s',($os eq 'win' ? "USB" :
54125423
$os_bsd ? '/dev/cuaa0' :
54135424
$^O eq 'linux' ? '/dev/ttyUSB0'

msg/bbbike/en

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,4 +1169,8 @@ strategy to reduce the number of waypoints",
11691169
"Link kopieren" => "Copy link",
11701170
"Private Fragezeichen" => "Private question marks",
11711171
'"%s" nicht gefunden' => '"%s" not found',
1172+
'interner Speicher' => 'internal memory',
1173+
'SD-Karte' => 'SD card',
1174+
'GPS-Disktyp' => 'GPS disk type',
1175+
'Disktyp des GPS-Geräts für Routen-Uploads' => "GPS device's disk used for route uploads",
11721176
};

0 commit comments

Comments
 (0)