[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-mdb] 08/23: neg cond
From: |
gnunet |
Subject: |
[taler-taler-mdb] 08/23: neg cond |
Date: |
Wed, 04 Dec 2019 14:15:54 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository taler-mdb.
commit 5384d76a6ab22bd508a2af5ec4b3bfeb3b7667dc
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Dec 4 12:40:25 2019 +0100
neg cond
---
src/main.c | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/main.c b/src/main.c
index d6c283e..63ce5f1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -387,7 +387,7 @@ static struct MdbCommand endSession;
*/
static const char *FRAMEBUFFER_DEVICE = "/dev/fb1";
-static const char *UART_DEVICE = "/dev/ttyAMA0";
+static const char *UART_DEVICE;
/**
* Taler wallet application identifier
@@ -1487,8 +1487,8 @@ read_mdb_command (void *cls)
if (cmdEndIdx == mdb.rx_off)
{
/* check to make sure rxBuffer was big enough in principle */
- if ( (cmdStartIdx > 0) ||
- (mdb.rx_off < sizeof (mdb.rxBuffer)) )
+ if ( (cmdStartIdx == 0) &&
+ (mdb.rx_off == sizeof (mdb.rxBuffer)) )
{
/* Developer: if this happens, try increasing rxBuffer! */
GNUNET_break (0);
@@ -1708,6 +1708,17 @@ run (void *cls,
global_ret = EXIT_FAILURE;
return;
}
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_filename (cfg,
+ "taler-mdb",
+ "UART_DEVICE",
+ &UART_DEVICE))
+ {
+ GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+ "taler-mdb",
+ "UART_DEVICE");
+ UART_DEVICE = GNUNET_strdup ("/dev/ttyAMA0");
+ }
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg,
"taler-mdb",
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [taler-taler-mdb] branch master updated (b18e966 -> 9065ce5), gnunet, 2019/12/04
- [taler-taler-mdb] 03/23: Some corrections, gnunet, 2019/12/04
- [taler-taler-mdb] 13/23: fix shutdown, gnunet, 2019/12/04
- [taler-taler-mdb] 05/23: some little bugfixes, gnunet, 2019/12/04
- [taler-taler-mdb] 09/23: neg cond, gnunet, 2019/12/04
- [taler-taler-mdb] 08/23: neg cond,
gnunet <=
- [taler-taler-mdb] 04/23: mdb communication working (test integration), gnunet, 2019/12/04
- [taler-taler-mdb] 10/23: parse filenames from config, gnunet, 2019/12/04
- [taler-taler-mdb] 01/23: Added mdb communication module, gnunet, 2019/12/04
- [taler-taler-mdb] 02/23: integration mdb first try, gnunet, 2019/12/04
- [taler-taler-mdb] 06/23: major mdb refactoring, gnunet, 2019/12/04
- [taler-taler-mdb] 23/23: add TODO, gnunet, 2019/12/04
- [taler-taler-mdb] 15/23: config, gnunet, 2019/12/04
- [taler-taler-mdb] 21/23: fix NPE, gnunet, 2019/12/04
- [taler-taler-mdb] 22/23: logging, gnunet, 2019/12/04
- [taler-taler-mdb] 17/23: invert checks, gnunet, 2019/12/04