@@ -401,14 +401,14 @@ void Rtc::alarmCallbackWrapper([[maybe_unused]] const struct device *dev,
401401 * @param void *user_data is a void pointer the user can set when registering the callback
402402 */
403403int Rtc::setUpdateCallback (RtcUpdateCallback cb, void *user_data) {
404- #if defined(CONFIG_RTC_RPI_PICO)
404+ #if defined(CONFIG_RTC_RPI_PICO)
405405 return -1 ;
406- #else
406+ #else
407407 userUpdateCallback = cb;
408408 userUpdateCallbackData = user_data;
409409
410410 return rtc_update_set_callback (rtc_dev, Rtc::updateCallbackWrapper, this );
411- #endif
411+ #endif
412412}
413413
414414/* *
@@ -438,11 +438,11 @@ void Rtc::updateCallbackWrapper([[maybe_unused]] const struct device *dev, void
438438 * @return 0 if successful, or a negative error code on failure.
439439 */
440440int Rtc::setCalibration (int32_t calibration) {
441- #if defined(CONFIG_RTC_RPI_PICO)
441+ #if defined(CONFIG_RTC_RPI_PICO)
442442 return -1 ;
443- #else
443+ #else
444444 return rtc_set_calibration (rtc_dev, calibration);
445- #endif
445+ #endif
446446}
447447
448448/* *
@@ -455,15 +455,15 @@ int Rtc::setCalibration(int32_t calibration) {
455455 * @return 0 if successful, or a negative error code on failure.
456456 */
457457int Rtc::getCalibration (int32_t &calibration) {
458- #if defined(CONFIG_RTC_RPI_PICO)
458+ #if defined(CONFIG_RTC_RPI_PICO)
459459 return -1 ;
460- #else
460+ #else
461461 return rtc_get_calibration (rtc_dev, &calibration);
462- #endif
462+ #endif
463463}
464464
465- #elif defined(CONFIG_COUNTER_NRF_RTC) // For other platforms (nordic), we must use the counter API to implement RTC
466- // functionality
465+ #elif defined(CONFIG_COUNTER_NRF_RTC) // For other platforms (nordic), we must use the counter API
466+ // to implement RTC functionality
467467
468468#if DT_NODE_EXISTS(DT_NODELABEL(rtc1))
469469#define COUNTER_NODE DT_NODELABEL (rtc1)
0 commit comments