Extend firmware download handler to serve locally built custom firmware, too.

Just save it as `squeezelite-esp32-custom.bin` in the firmware update folder (LMS Cache/updates) and paste http://yourlms:9000/plugins/SqueezeESP32/firmware/custom.bin in the firmware URL box.
This commit is contained in:
Michael Herger
2021-04-17 07:19:04 +02:00
parent f96d06912f
commit 7ad39a02f5
2 changed files with 21 additions and 3 deletions

View File

@@ -37,12 +37,13 @@ $prefs->setChange(sub {
sub initPlugin {
my $class = shift;
# enable the following to test the firmware downloading code without a SqueezeliteESP32 player
# require Plugins::SqueezeESP32::FirmwareHelper;
# Plugins::SqueezeESP32::FirmwareHelper::init();
if ( main::WEBUI ) {
require Plugins::SqueezeESP32::PlayerSettings;
Plugins::SqueezeESP32::PlayerSettings->new;
# require Plugins::SqueezeESP32::Settings;
# Plugins::SqueezeESP32::Settings->new;
}
$class->SUPER::initPlugin(@_);