summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-26 18:18:45 -0700
committerGary E. Miller <gem@rellim.com>2019-04-26 18:18:45 -0700
commit043fafb9f1312a4be8fec0f63a07777c86524a01 (patch)
tree9b36999220a9018580c182ca83a853e3e231c130 /ubxtool
parent1bdb9bf4f23b2c91b9635361e091a99d79e80e5e (diff)
downloadgpsd-043fafb9f1312a4be8fec0f63a07777c86524a01.tar.gz
ubxtool: Have -x delete both BBR and FLASH layers.
No way to delete from RAM layer...
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool4
1 files changed, 3 insertions, 1 deletions
diff --git a/ubxtool b/ubxtool
index b7ff866d..75356867 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3958,7 +3958,9 @@ class ubx(object):
"""UBX-CFG-VALDEL, delete config items by key"""
m_data = bytearray(4)
m_data[0] = 0 # version, 0 = transactionless, 1 = transaction
- m_data[1] = 2 # 2 = BBR, 4 = flash
+ m_data[1] = 6 # 2 = BBR, 4 = flash
+ # can not delete RAM layer!
+ # so options stay set until reset!
for key in keys:
k_data = bytearray(4)
k_data[0] = (key) & 0xff