Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid function call in CompositeOutput.cpp (doesn't compile for ESP32) #138

Open
jelli123 opened this issue Feb 25, 2022 · 3 comments
Open

Comments

@jelli123
Copy link

It seems that the argument list when calling an deprecated Espressif 32 (PlatformIO) function has been replaced by that of the new function, but the function name has not been corrected.

/src/intf/vga/esp32/CompositeOutput.cpp

  • library version 1.8.3
  • Platform Esp32 (Espressif 32: development platform for PlatformIO)

Suggestion:
in
void CompositeOutput::check_buffer()
replace
i2s_write_bytes(I2S_PORT, (char*)line, sizeof(uint16_t) * (m_end - line), &bytes_written, portMAX_DELAY);
with
i2s_write(I2S_PORT, (char*)line, sizeof(uint16_t) * (m_end - line), &bytes_written, portMAX_DELAY);

@lexus2k
Copy link
Owner

lexus2k commented Mar 1, 2022

Hi,
can you please download latest code from the master branch.
It already has the fix 78c2dcd

@jelli123
Copy link
Author

jelli123 commented Mar 2, 2022

sorry, I found out that this is the same as issue #132 and it was fixed last October in the GitHub master branch.

BUT, when I load version 1.8.3 in PlatformIO, I get a different /src/intf/vga/esp32/CompositeOutput.cpp (line 275).

void CompositeOutput::check_buffer()
{
if (m_ptr == m_end)
{
size_t bytes_written;
i2s_write_bytes(I2S_PORT, (char*)line, sizeof(uint16_t) * (m_end - line), &bytes_written, portMAX_DELAY);
m_ptr = line;
}
}

There it shows i2s_write_bytes and in the GitHub master it shows i2s_write.
Strange...

@lexus2k
Copy link
Owner

lexus2k commented Mar 4, 2022

That's very strange since the fix is included to 1.8.3 according to the github:

изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants