From 9db6a57b5f7aec4f91dda128f092d05d574ae358 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 14 Mar 2010 17:55:25 +0000 Subject: [PATCH] added photo listener --- powersensordaemon/powersensordaemon.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/powersensordaemon/powersensordaemon.c b/powersensordaemon/powersensordaemon.c index 2d5572b..0a94676 100644 --- a/powersensordaemon/powersensordaemon.c +++ b/powersensordaemon/powersensordaemon.c @@ -382,13 +382,17 @@ int process_tty(read_buffer_t* buffer, int tty_fd, cmd_t **cmd_q, client_t* clie } if(!strncmp(buffer->buf, "PanicButton", 11)) { - SEND_TO_LISTENER(button_listener, "panic buttont", cmd_fd, buffer->buf); + SEND_TO_LISTENER(button_listener, "panic button", cmd_fd, buffer->buf); } if(!strncmp(buffer->buf, "Temp ", 5)) { SEND_TO_LISTENER(temp_listener, "", cmd_fd, buffer->buf); } + if(!strncmp(buffer->buf, "Photo: ", 5)) { + SEND_TO_LISTENER(photo_listener, "", cmd_fd, buffer->buf); + } + cmd_pop(cmd_q); buffer->offset = 0; return 0; -- 1.7.10.4