Skip to content

Commit 8eeb802

Browse files
committed
Merge branch 'master' into temp
2 parents 2821a8c + d942e44 commit 8eeb802

5 files changed

Lines changed: 17 additions & 9 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*.zip
1313
.deps
1414
.dirstamp
15-
googlemock-read-only/
15+
gtest-read-only/
1616
Makefile
1717
Makefile.in
1818
aclocal.m4

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ before_install:
7777
- if [ "$TASK" = "compile" -o "$TASK" = "doxygen" -o "$TASK" = "coverage" -o "$TASK" = "coverity" ]; then ./install-gmock.sh; fi
7878

7979
after_success:
80-
- if [ "$TASK" = "coverity" ]; then cat /home/travis/build/${TRAVIS_REPO_SLUG}/tests/cov-int/scm_log.txt; fi
81-
- if [ "$TASK" = "coverage" ]; then cd tests && coveralls --gcov /usr/bin/gcov-5 -b . -e include -e harmony -e mocks -e config.h -e system_config -e tests --gcov-options '\-lp' --follow-symlinks > /dev/null; fi
80+
- if [ "$TASK" = "coverity" ]; then cat /home/travis/build/${TRAVIS_REPO_SLUG}/cov-int/scm_log.txt; fi
81+
- if [ "$TASK" = "coverage" ]; then coveralls --gcov /usr/bin/gcov-5 -b . -e tests/include -e tests/harmony -e tests/mocks -e config.h -e tests/system_config -e tests/tests --gcov-options '\-lp' --follow-symlinks > /dev/null; fi
8282

8383
after_failure:
84-
- cat /home/travis/build/${TRAVIS_REPO_SLUG}/tests/config.log
84+
- cat /home/travis/build/${TRAVIS_REPO_SLUG}/config.log
8585

8686

8787
#No notifications for now

Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ include tests/Makefile.mk
3434
include tools/Makefile.mk
3535

3636
check_PROGRAMS = $(TESTS)
37-

common/uid_store.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ void UIDStore_Init() {
4848
// To support more than one responder per device, we set the lower 4 bits of
4949
// the UID to 0 so we have 16 responders per device. These means the complete
5050
// UID takes the form:
51-
// MMMM:0AAAAAA0
51+
// MMMM:1AAAAAA0
5252
// Where M is the PLASA manufacturer ID and A are the values from the MAC
5353
// address.
5454
kUIDArray[0] = CFG_MANUFACTURER_ID >> 8;
5555
kUIDArray[1] = CFG_MANUFACTURER_ID & 0xff;
56-
kUIDArray[2] = ShiftRight(PLIB_ETH_StationAddressGet(ETH_ID_0, 4));
56+
kUIDArray[2] = 0x10 + ShiftRight(PLIB_ETH_StationAddressGet(ETH_ID_0, 4));
5757
kUIDArray[3] = ShiftLeft(PLIB_ETH_StationAddressGet(ETH_ID_0, 4)) +
5858
ShiftRight(PLIB_ETH_StationAddressGet(ETH_ID_0, 5));
5959
kUIDArray[4] = ShiftLeft(PLIB_ETH_StationAddressGet(ETH_ID_0, 5)) +

configure.ac

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,24 @@ AC_CONFIG_SRCDIR([configure.ac])
77
AC_CONFIG_HEADERS([config.h])
88
AC_CONFIG_MACRO_DIR([config])
99
AM_INIT_AUTOMAKE([subdir-objects foreign])
10-
AC_LANG_PUSH([C++])
10+
AC_LANG([C++])
1111

1212
# Checks for programs.
1313
AC_PROG_CXX
14+
AC_LANG_PUSH(C)
15+
AC_PROG_CC
16+
AC_LANG_POP(C)
1417

1518
# Checks for libraries.
1619

1720
LT_INIT
1821
AC_PROG_LIBTOOL
1922

23+
AC_LANG_PUSH(C)
24+
# Switch the C compiler into C99 mode
25+
AC_PROG_CC_C99
26+
AC_LANG_POP(C)
27+
2028
# Check we have -std=c++11 support
2129
AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
2230

@@ -113,7 +121,8 @@ echo \
113121
${PACKAGE_NAME} Version ${PACKAGE_VERSION}
114122

115123
Prefix: '${prefix}'
116-
Compiler: '${CXX} ${CXXFLAGS} ${CPPFLAGS}'
124+
C++ Compiler: '${CXX} ${CXXFLAGS} ${CPPFLAGS}'
125+
C Compiler: '${CC} ${CFLAGS} ${CPPFLAGS}'
117126
Linker: '${LD} ${LDFLAGS} ${LIBS}'
118127

119128
Now type 'make @<:@<target>@:>@'

0 commit comments

Comments
 (0)