Skip to content

Commit 27ed2d7

Browse files
committed
Fix simulator
1 parent 1055eb1 commit 27ed2d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

firmware/console/binary/tunerstudio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ static uint8_t* getWorkingPageAddr(TsChannelBase* tsChannel, size_t page, size_t
201201

202202
// Now check for read-only pages
203203
switch (page) {
204-
#if (EFI_PROD_CODE || EFI_SIMULATOR)
204+
#if (EFI_PROD_CODE /* || EFI_SIMULATOR */)
205205
case TS_PAGE_FS_IMAGE_SIZE:
206206
{
207207
uint32_t* data32 = reinterpret_cast<uint32_t*>(tsChannel->scratchBuffer + TS_PACKET_HEADER_SIZE);
@@ -240,7 +240,7 @@ static constexpr size_t getTunerStudioPageSize(size_t page) {
240240
#endif
241241
case TS_PAGE_SECOND_TABLES:
242242
return getExtraPageSize(EFI_SECOND_TABLES_RECORD_ID);
243-
#if (EFI_PROD_CODE || EFI_SIMULATOR)
243+
#if (EFI_PROD_CODE /* || EFI_SIMULATOR */)
244244
case TS_PAGE_FS_IMAGE_SIZE:
245245
// page contains only 4 bytes of size of next page
246246
return sizeof(uint32_t);

0 commit comments

Comments
 (0)