| 64 | } |
| 65 | |
| 66 | void AssertNoError(RTCDevice device) |
| 67 | { |
| 68 | RTCError error = rtcGetDeviceError(device); |
| 69 | if (error != RTC_ERROR_NONE) |
| 70 | throw std::runtime_error("Error occurred: "+string_of(error)); |
| 71 | } |
| 72 | |
| 73 | void AssertAnyError(RTCDevice device) |
| 74 | { |