More verbose error log on startup

This commit is contained in:
Luke
2020-05-23 09:41:28 +12:00
parent 8f9c81e863
commit 0b3046b31f
2 changed files with 19 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ pub async fn start_daemon() -> Result<(), Box<dyn Error>> {
// Check if single mode
if let Ok(mut lock) = input.try_lock() {
if let Some(bytes) = lock.take() {
if bytes.len() > 0 {
if !bytes.is_empty() {
let mut config = config.lock().await;
led_writer
.do_command(AuraCommand::WriteBytes(bytes), &mut config)