Skip to content

Commit

Permalink
WIP: Fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkra committed Sep 23, 2023
1 parent 47759da commit 5bfc8ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void run_wdt_work(struct k_work *item)

int main(void)
{
#ifdef CONFIG_TASK_WDT
#if defined(CONFIG_TASK_WDT) && !defined(CONFIG_BOARD_NATIVE_POSIX)
const struct device *hw_wdt_dev = DEVICE_DT_GET(DT_ALIAS(watchdog0));
if (!device_is_ready(hw_wdt_dev)) {
printk("Hardware watchdog %s is not ready; ignoring it.\n",
Expand Down
6 changes: 3 additions & 3 deletions app/src/zsw_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ static void single_sector_test(const struct device *flash_dev)

static int zsw_flash_test(void)
{
const struct device *flash_dev = DEVICE_DT_GET(DT_ALIAS(spi_flash0));
const struct device *flash_dev = DEVICE_DT_GET_OR_NULL(DT_ALIAS(spi_flash0));

if (!device_is_ready(flash_dev)) {
LOG_ERR("No external flash present: %s", flash_dev->name);
if (!flash_dev || !device_is_ready(flash_dev)) {
LOG_ERR("No external flash present: %s", flash_dev ? flash_dev->name: "spi_flash0");
return 0;
}

Expand Down

0 comments on commit 5bfc8ef

Please sign in to comment.