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,15 +1,15 @@
|
||||
#include "Bq25896.h"
|
||||
|
||||
#include <Tactility/Log.h>
|
||||
#include <Tactility/Logger.h>
|
||||
|
||||
constexpr auto* TAG = "BQ25896";
|
||||
static const auto LOGGER = tt::Logger("BQ25896");
|
||||
|
||||
void Bq25896::powerOff() {
|
||||
TT_LOG_I(TAG, "Power off");
|
||||
LOGGER.info("Power off");
|
||||
bitOn(0x09, BIT(5));
|
||||
}
|
||||
|
||||
void Bq25896::powerOn() {
|
||||
TT_LOG_I(TAG, "Power on");
|
||||
LOGGER.info("Power on");
|
||||
bitOff(0x09, BIT(5));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user