fixed uninitialized and disabled unused member in src/mess/machine/at45dbxx.c (nw)

This commit is contained in:
Oliver Stöneberg 2013-03-09 09:38:18 +00:00
parent 4a1f2f7735
commit 4ed6e53088
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,7 @@ void at45db041_device::device_start()
m_size = num_pages() * page_size();
m_data = auto_alloc_array(machine(), UINT8, m_size);
m_buffer1 = auto_alloc_array(machine(), UINT8, page_size());
m_buffer2 = auto_alloc_array(machine(), UINT8, page_size());
//m_buffer2 = auto_alloc_array(machine(), UINT8, page_size());
// data
save_pointer(NAME(m_data), m_size);
@ -102,6 +102,7 @@ void at45db041_device::device_reset()
_logerror( 1, ("at45dbxx_reset\n"));
// mode
m_mode = FLASH_MODE_SI;
m_status = 0;
// command
memset(&m_cmd.data[0], 0, sizeof(m_cmd.data));
m_cmd.size = 0;

View File

@ -73,7 +73,7 @@ protected:
UINT8 m_mode;
UINT8 m_status;
UINT8 * m_buffer1;
UINT8 * m_buffer2;
//UINT8 * m_buffer2;
UINT8 m_si_byte;
UINT8 m_si_bits;
UINT8 m_so_byte;