Compare commits
No commits in common. "1996eb7e1660abeaa0027e4e422a009120ca66a8" and "6b7ce73a242baf7a7377fecdb86fa498859f2a88" have entirely different histories.
1996eb7e16
...
6b7ce73a24
3 changed files with 8 additions and 9 deletions
|
@ -612,8 +612,8 @@
|
||||||
"provider": "GabeBoy",
|
"provider": "GabeBoy",
|
||||||
"limits": {
|
"limits": {
|
||||||
"charge_rate": {
|
"charge_rate": {
|
||||||
"min": 0,
|
"min": 250,
|
||||||
"max": 100
|
"max": 2500
|
||||||
},
|
},
|
||||||
"charge_modes": [
|
"charge_modes": [
|
||||||
"normal",
|
"normal",
|
||||||
|
@ -878,8 +878,8 @@
|
||||||
"provider": "GabeBoySP",
|
"provider": "GabeBoySP",
|
||||||
"limits": {
|
"limits": {
|
||||||
"charge_rate": {
|
"charge_rate": {
|
||||||
"min": 0,
|
"min": 250,
|
||||||
"max": 100
|
"max": 2500
|
||||||
},
|
},
|
||||||
"charge_modes": [
|
"charge_modes": [
|
||||||
"normal",
|
"normal",
|
||||||
|
|
|
@ -384,7 +384,7 @@ fn print_messages(msgs: &Vec<String>) {
|
||||||
impl ApiMessageHandler {
|
impl ApiMessageHandler {
|
||||||
pub fn process_forever(&mut self, settings: &mut Settings) {
|
pub fn process_forever(&mut self, settings: &mut Settings) {
|
||||||
crate::utility::ioperm_power_ec();
|
crate::utility::ioperm_power_ec();
|
||||||
let mut dirty_echo = true; // set everything twice, to make sure PowerTools wins on race conditions
|
//let mut dirty_echo = true; // set everything twice, to make sure PowerTools wins on race conditions
|
||||||
while let Ok(msg) = self.intake.recv() {
|
while let Ok(msg) = self.intake.recv() {
|
||||||
let mut messages = vec![msg.to_string()]; // keep messages for logging
|
let mut messages = vec![msg.to_string()]; // keep messages for logging
|
||||||
let mut dirty = self.process(settings, msg);
|
let mut dirty = self.process(settings, msg);
|
||||||
|
@ -393,9 +393,9 @@ impl ApiMessageHandler {
|
||||||
dirty |= self.process(settings, msg);
|
dirty |= self.process(settings, msg);
|
||||||
}
|
}
|
||||||
if dirty
|
if dirty
|
||||||
|| dirty_echo
|
/*|| dirty_echo */
|
||||||
{
|
{
|
||||||
dirty_echo = dirty; // echo only once
|
//dirty_echo = dirty; // echo only once
|
||||||
print_messages(&messages);
|
print_messages(&messages);
|
||||||
// run on_set
|
// run on_set
|
||||||
if let Err(e) = settings.on_set() {
|
if let Err(e) = settings.on_set() {
|
||||||
|
|
|
@ -69,8 +69,7 @@ pub fn chown_settings_dir() -> std::io::Result<()> {
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap_or(1000);
|
.unwrap_or(1000);
|
||||||
log::info!(
|
log::info!(
|
||||||
"chmod/chown {} for user `{}` ({})",
|
"chmod/chown ~/.config/powertools for user `{}` ({})",
|
||||||
dir.display(),
|
|
||||||
deck_user,
|
deck_user,
|
||||||
uid
|
uid
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue