From fb54307939103defd0fcb330161d34a77e7f56aa Mon Sep 17 00:00:00 2001 From: Thomas Ingleby Date: Wed, 21 Jan 2015 15:43:27 +0000 Subject: [PATCH] raspberry_pi_b: add missing platform name Signed-off-by: Thomas Ingleby --- src/arm/raspberry_pi_b.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/arm/raspberry_pi_b.c b/src/arm/raspberry_pi_b.c index c23572d..71913c1 100644 --- a/src/arm/raspberry_pi_b.c +++ b/src/arm/raspberry_pi_b.c @@ -29,14 +29,17 @@ #include "arm/raspberry_pi_b.h" #define UART_DEV_PATH "/dev/ttyAMA0" +#define PLATFORM_NAME "Raspberry Pi B" mraa_board_t* mraa_raspberry_pi_b() { mraa_board_t* b = (mraa_board_t*) malloc(sizeof(mraa_board_t)); - if (b == NULL) + if (b == NULL) { return NULL; + } + b->platform_name = PLATFORM_NAME; b->phy_pin_count = MRAA_RASPBERRY_PI_B; b->aio_count = 0; b->adc_raw = 0; -- 2.7.4