mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 03:47:45 +00:00
Daylight Savings Time support (#1793)
* Daylight Savings Time support * Cleanup * Clean-up * Revert ADSB change * Clean-up * Corrected date in comment, ironically
This commit is contained in:
@@ -32,8 +32,10 @@
|
||||
#include "irq_controls.hpp"
|
||||
#include "string_format.hpp"
|
||||
#include "usb_serial_device_to_host.h"
|
||||
#include "rtc_time.hpp"
|
||||
|
||||
using namespace portapack;
|
||||
using namespace rtc_time;
|
||||
|
||||
namespace ui {
|
||||
|
||||
@@ -433,7 +435,7 @@ void Labels::getWidgetName(std::string& result) {
|
||||
/* LiveDateTime **********************************************************/
|
||||
|
||||
void LiveDateTime::on_tick_second() {
|
||||
rtcGetTime(&RTCD1, &datetime);
|
||||
rtc_time::now(datetime);
|
||||
text = "";
|
||||
if (!hide_clock) {
|
||||
if (date_enabled) {
|
||||
|
Reference in New Issue
Block a user