From 4f4dec2f18d223f62bd0a3812462c3073fd207ad Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Thu, 17 Oct 2024 10:37:08 -0400 Subject: [PATCH] Update scripts/build/builders/nxp.py Co-authored-by: Arkadiusz Bokowy --- scripts/build/builders/nxp.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/scripts/build/builders/nxp.py b/scripts/build/builders/nxp.py index 7b44cba297a3d9..91155f20c96f7b 100644 --- a/scripts/build/builders/nxp.py +++ b/scripts/build/builders/nxp.py @@ -227,12 +227,10 @@ def __init__(self, self.iw416_transceiver = iw416_transceiver self.w8801_transceiver = w8801_transceiver self.iwx12_transceiver = iwx12_transceiver - if self.low_power: - if log_level != NxpLogLevel.NONE: - logging.warning("Switching log level to 'NONE' for low power build") - self.log_level = NxpLogLevel.NONE - else: - self.log_level = log_level + if self.low_power and log_level != NxpLogLevel.NONE: + logging.warning("Switching log level to 'NONE' for low power build") + log_level = NxpLogLevel.NONE + self.log_level = log_level def GnBuildArgs(self): args = []