mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
Remove fake API reference from commented/deprecated code
Clean up final reference to shouldUseFakeData in disabled battery reporting code. Co-authored-by: hossain-khan <99822+hossain-khan@users.noreply.github.com>
This commit is contained in:
co-authored by
hossain-khan
parent
7fc02891dd
commit
a57d33d519
@@ -242,11 +242,6 @@ class TrmnlUserRepository
|
||||
|
||||
Timber.d("Reporting battery status: $batteryPercent% for device ID: $deviceId")
|
||||
|
||||
if (repositoryConfigProvider.shouldUseFakeData) {
|
||||
// Skip API call in debug mode
|
||||
Timber.d("Skipping battery status report (fake API mode)")
|
||||
return Result.success(Unit)
|
||||
}
|
||||
|
||||
val updateRequest = TrmnlDeviceUpdateRequest(percentCharged = batteryPercent)
|
||||
val apiUrl = constructApiUrl(config.apiBaseUrl, DEVICE_API_PATH.replace("{id}", deviceId.toString()))
|
||||
|
||||
Reference in New Issue
Block a user