From 09071427e496ba766ca54d2a2b868b0eb1802412 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 10 May 2020 09:34:22 +0100 Subject: [PATCH] drivers: nrf_rtc: Fix some tab/space issues These issues do not appear when parsing with micropython but when we import this file into sphinx then things go a bit south. --- wasp/drivers/nrf_rtc.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wasp/drivers/nrf_rtc.py b/wasp/drivers/nrf_rtc.py index 0ff2c1f..dcce996 100644 --- a/wasp/drivers/nrf_rtc.py +++ b/wasp/drivers/nrf_rtc.py @@ -22,16 +22,16 @@ class RTC(object): def __init__(self, counter): self.counter = counter - if machine.mem32[0x200039c0] == 0x1abe11ed and \ - machine.mem32[0x200039dc] == 0x10adab1e: + if machine.mem32[0x200039c0] == 0x1abe11ed and \ + machine.mem32[0x200039dc] == 0x10adab1e: self.lastcount = self.counter.counter() - self.offset = machine.mem32[0x200039c4] - self._uptime = machine.mem32[0x200039c8] // 125 - else: - machine.mem32[0x200039c0] = 0x1abe11ed - machine.mem32[0x200039dc] = 0x10adab1e - self._uptime = 0 - self.set_localtime((2020, 3, 1, 3, 0, 0, 0, 0)) + self.offset = machine.mem32[0x200039c4] + self._uptime = machine.mem32[0x200039c8] // 125 + else: + machine.mem32[0x200039c0] = 0x1abe11ed + machine.mem32[0x200039dc] = 0x10adab1e + self._uptime = 0 + self.set_localtime((2020, 3, 1, 3, 0, 0, 0, 0)) def update(self): newcount = self.counter.counter()