Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit bb61568

Browse files
committed
bug fix
1 parent 4c3482b commit bb61568

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

examples/Example_Zephyr/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ cmake_minimum_required(VERSION 3.13.1)
55
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
66
project(sparkfun_ublox_zephyr_library)
77

8+
zephyr_compile_options(-fdiagnostics-color=always)
9+
810
zephyr_include_directories(../../src/)
911
target_sources(app PRIVATE ../../src/SparkFun_Ublox_Zephyr_Library.cpp)
1012
target_sources(app PRIVATE ../../src/ublox_lib_interface.cpp)

examples/Example_Zephyr/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ uint8_t init_gpio(void) {
4242
printk("Error: Could not get %s device\n", gpioName);
4343
return -EIO;
4444
}
45-
int err = set_gpio_dev(gpio_dev);
45+
int err = set_gpio_dev(gpio_dev, true); // set GPIO_0 device and enable debugging
4646
if (err) {
4747
return -EIO;
4848
}

0 commit comments

Comments
 (0)