From cddd26107025ef8ac6acd64ff2afdf24dceea962 Mon Sep 17 00:00:00 2001 From: Mark Niemann-Ross Date: Wed, 15 May 2024 13:43:50 -0700 Subject: [PATCH] move from /boot/config to /boot/firmware/config --- R/rpi_pwm.R | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R/rpi_pwm.R b/R/rpi_pwm.R index e24487e..55425db 100644 --- a/R/rpi_pwm.R +++ b/R/rpi_pwm.R @@ -85,11 +85,11 @@ rpi_pwm <- function(pin_number = 12, pwm_period = 50000, pwm_dutycycle = 25000, ) } - # is dtoverlayString already in /boot/config.txt ? + # is dtoverlayString already in /boot/firmware/config.txt ? # There might be no version or a different version... - if (!any(grepl(dtoverlayString, readLines("/boot/config.txt")))) { + if (!any(grepl(dtoverlayString, readLines("/boot/firmware/config.txt")))) { # dtoverlayString contains the string to place in /boot/config.txt - message(paste("Add this string to /boot/config:", dtoverlayString)) + message(paste("Add this string to /boot/firmware/config:", dtoverlayString)) message("Refer to https://mnr.github.io/rpigpior/articles/rpi_pwm.html#handling-errors") stop(paste("PWM not enabled"))