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

Tolino Epos 2 support #521

Merged
merged 2 commits into from
Oct 7, 2024
Merged

Tolino Epos 2 support #521

merged 2 commits into from
Oct 7, 2024

Conversation

hugleo
Copy link
Contributor

@hugleo hugleo commented Oct 6, 2024

Tolino Epos 2

Device info:
Manufacturer: rakuten kobo inc.
Brand: rakutenkobo
Model: tolino
Device: ntx_6sl
Product: ntx_6sl
Hardware: e80k00
Platform: imx6

test.log

Lights: tolino/ntx

Also adds Tolino Epos 1 to EPD driver


This change is Reviewable

Tolino Epos 2

Device info:
Manufacturer: rakuten kobo inc.
Brand: rakutenkobo
Model: tolino
Device: ntx_6sl
Product: ntx_6sl
Hardware: e80k00
Platform: imx6

test.log

Lights: tolino/ntx


Also adds Tolino Epos 1 to EPD driver
@@ -113,6 +113,7 @@ object DeviceInfo {
SONY_RP1,
TAGUS_GEA,
TOLINO,
TOLINO_EPOS1,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

@@ -782,6 +791,7 @@ object DeviceInfo {
deviceMap[EinkDevice.SONY_RP1] = SONY_RP1
deviceMap[EinkDevice.TAGUS_GEA] = TAGUS_GEA
deviceMap[EinkDevice.TOLINO] = TOLINO
deviceMap[EinkDevice.TOLINO_EPOS1] = TOLINO_EPOS1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

@@ -72,7 +72,8 @@ object EPDFactory {
DeviceInfo.EinkDevice.HANVON_960,
DeviceInfo.EinkDevice.ONYX_JDREAD,
DeviceInfo.EinkDevice.RIDI_PAPER_3,
DeviceInfo.EinkDevice.TOLINO -> {
DeviceInfo.EinkDevice.TOLINO,
DeviceInfo.EinkDevice.TOLINO_EPOS1 -> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Member

@pazos pazos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you added the Epos1 to EPD. It will still be asigned the first driver of the factory that matches, and I think we agree recently that was TOLINO. So it's a bit of noise.

@hugleo
Copy link
Contributor Author

hugleo commented Oct 7, 2024

Oh sorry,

I unfold strings here:

    TOLINO = BRAND.contentEquals(rakutenkobo) && MODEL.contentEquals("imx50_rdp")
        || MODEL.contentEquals(ntx_6sl) && 
        (DEVICE.contentEquals("tolino_vision2") || DEVICE.contentEquals(ntx_6sl))

My bad. I got confused for to many || or &&. You are right, is catched here: || MODEL.contentEquals(ntx_6sl).

@hugleo hugleo requested a review from pazos October 7, 2024 12:43
Copy link
Member

@pazos pazos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you very much ;)

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

Successfully merging this pull request may close these issues.

2 participants