Skip to content

Commit

Permalink
fix shellyu/u25 building
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Oct 18, 2024
1 parent f0448f7 commit da4db79
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/shelly_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,28 +761,28 @@ void InitApp() {

// Initialize accessory server.
HAPAccessoryServerOptions server_options = {
.maxPairings = kHAPPairingStorage_MinElements,
.maxPairings = kHAPPairingStorage_MinElements,
#if HAP_IP
.ip =
{
.transport = &kHAPAccessoryServerTransport_IP,
.ip =
{
.transport = &kHAPAccessoryServerTransport_IP,
#ifndef __clang__
.available = 0,
.available = 0,
#endif
.accessoryServerStorage = &s_ip_storage,
},
.accessoryServerStorage = &s_ip_storage,
},
#endif
#if HAP_BLE
.ble =
{
.transport = nullptr,
.ble =
{
.transport = nullptr,
#ifndef __clang__
.available = 0,
.available = 0,
#endif
.accessoryServerStorage = nullptr,
.preferredAdvertisingInterval = 0,
.preferredNotificationDuration = 0,
},
.accessoryServerStorage = nullptr,
.preferredAdvertisingInterval = 0,
.preferredNotificationDuration = 0,
},
#endif
};
static struct HAPPlatformMFiTokenAuth s_mfi_auth;
Expand Down
2 changes: 2 additions & 0 deletions src/shelly_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ Status OutputPin::SetStatePWM(float duty, const char *source) {
}
return Status::OK();
#else
(void) duty;
(void) source;
return Status::UNIMPLEMENTED();
#endif
}
Expand Down

0 comments on commit da4db79

Please sign in to comment.