mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
19806: ztimer/periodic: remove timer on init if already running r=kaspar030 a=benpicco
19814: boards/sipeed-longan-nano: revert default to variant with TFT r=benpicco a=gschorcht
### Contribution description
This PR reverts commit 69fb00bdfa
to fix CI compilation.
### Testing procedure
Green CI with full build.
### Issues/PRs references
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
This commit is contained in:
commit
7dd7d1e3a7
@ -38,7 +38,7 @@ menu "Sipeed Longan Nano Board Configuration"
|
||||
|
||||
config SIPEED_LONGAN_NANO_WITH_TFT
|
||||
bool "Board with TFT display"
|
||||
default y
|
||||
default y if MODULE_DISP_DEV
|
||||
select HAVE_ST7735
|
||||
help
|
||||
Indicates that a Sipeed Longan Nano board with TFT display is used.
|
||||
|
@ -1,3 +1,8 @@
|
||||
PORT_LINUX ?= /dev/ttyACM0
|
||||
PROGRAMMER ?= dfu-util
|
||||
|
||||
ifneq (,$(filter st7735,$(USEMODULE)))
|
||||
CFLAGS += '-DCONFIG_SIPEED_LONGAN_NANO_WITH_TFT=1'
|
||||
endif
|
||||
|
||||
include $(RIOTBOARD)/common/gd32v/Makefile.include
|
||||
|
@ -57,6 +57,7 @@ void ztimer_periodic_init(ztimer_clock_t *clock, ztimer_periodic_t *timer,
|
||||
bool (*callback)(
|
||||
void *), void *arg, uint32_t interval)
|
||||
{
|
||||
ztimer_remove(clock, &timer->timer);
|
||||
*timer =
|
||||
(ztimer_periodic_t){ .clock = clock, .interval = interval,
|
||||
.callback = callback, .arg = arg,
|
||||
|
Loading…
Reference in New Issue
Block a user