From 0db61b63bb7299684ecb7d5a56a6fd35b3e8f4de Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 2 Oct 2007 12:50:21 +0000 Subject: Use "onmode" instead of "on" as the key for the previous on-mode --- hcid/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hcid/storage.c b/hcid/storage.c index f2254cc3..bec8fec1 100644 --- a/hcid/storage.c +++ b/hcid/storage.c @@ -95,7 +95,7 @@ int write_device_mode(bdaddr_t *bdaddr, const char *mode) create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); if (strcmp(mode, "off") != 0) - textfile_put(filename, "on", mode); + textfile_put(filename, "onmode", mode); return textfile_put(filename, "mode", mode); } @@ -124,7 +124,7 @@ int read_on_mode(bdaddr_t *bdaddr, char *mode, int length) create_filename(filename, PATH_MAX, bdaddr, "config"); - str = textfile_get(filename, "on"); + str = textfile_get(filename, "onmode"); if (!str) return -ENOENT; -- cgit