New logging and more (#446)
- `TT_LOG_*` macros are replaced by `Logger` via `#include<Tactility/Logger.h>` - Changed default timezone to Europe/Amsterdam - Fix for logic bug in unPhone hardware - Fix for init/deinit in DRV2605 driver - Other fixes - Removed optimization that broke unPhone (disabled the moving of heap-related functions to flash)
This commit is contained in:
committed by
GitHub
parent
719f7bcece
commit
f620255c41
@@ -1,18 +1,19 @@
|
||||
#include "Display.h"
|
||||
|
||||
#include "Power.h"
|
||||
|
||||
#include <Tactility/Logger.h>
|
||||
|
||||
#include <St7789Display.h>
|
||||
#include <bitset>
|
||||
|
||||
constexpr auto* TAG = "StickCPlus";
|
||||
static const auto LOGGER = tt::Logger("StickCPlus");
|
||||
|
||||
static void setBacklightOn(bool on) {
|
||||
const auto axp = getAxp192();
|
||||
const auto* driver = axp->getAxp192();
|
||||
uint8_t state;
|
||||
if (axp192_read(driver, AXP192_DCDC13_LDO23_CONTROL, &state) != AXP192_OK) {
|
||||
TT_LOG_I(TAG, "Failed to read LCD brightness state");
|
||||
LOGGER.info("Failed to read LCD brightness state");
|
||||
return;
|
||||
}
|
||||
std::bitset<8> new_state = state;
|
||||
|
||||
Reference in New Issue
Block a user