You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Compilation issues when building for unit tests, starting with commit 61042d9
To Reproduce
cd ESP-Miner
git checkout master
git checkout 61042d93ae0b0e54c4a0020dd87b2803f6fd369d
cd test
idf.py build
Expected behavior
Unit test build is successful.
Log
idf.py build
...
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c: In function '_reset':
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c:18:25: error: 'CONFIG_GPIO_ASIC_RESET' undeclared (first use in this function); did you mean 'GPIO_ASIC_RESET'?
18 | #define GPIO_ASIC_RESET CONFIG_GPIO_ASIC_RESET
| ^~~~~~~~~~~~~~~~~~~~~~
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c:125:20: note: in expansion of macro 'GPIO_ASIC_RESET'
125 | gpio_set_level(GPIO_ASIC_RESET, 0);
| ^~~~~~~~~~~~~~~
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c:18:25: note: each undeclared identifier is reported only once for each function it appears in
18 | #define GPIO_ASIC_RESET CONFIG_GPIO_ASIC_RESET
| ^~~~~~~~~~~~~~~~~~~~~~
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c:125:20: note: in expansion of macro 'GPIO_ASIC_RESET'
125 | gpio_set_level(GPIO_ASIC_RESET, 0);
| ^~~~~~~~~~~~~~~
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c: In function 'BM1368_init':
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c:18:25: error: 'CONFIG_GPIO_ASIC_RESET' undeclared (first use in this function); did you mean 'GPIO_ASIC_RESET'?
18 | #define GPIO_ASIC_RESET CONFIG_GPIO_ASIC_RESET
| ^~~~~~~~~~~~~~~~~~~~~~
/home/dev/myrepos/ESP-MinerAlt/ESP-Miner/components/asic/bm1368.c:246:34: note: in expansion of macro 'GPIO_ASIC_RESET'
246 | esp_rom_gpio_pad_select_gpio(GPIO_ASIC_RESET);
| ^~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
...
When you have some time can you take a look at this PR? #634
Thanks. Took a look at it. Great work!
I checked out head of the #634 branch (4a07ee4), and unit test building was successful. Will close the Issue once #634 is merged.
Describe the bug
Compilation issues when building for unit tests, starting with commit 61042d9
To Reproduce
Expected behavior
Unit test build is successful.
Log
Additional context
Building on the previous commit (f454b0c) seems ok.
https://github.com/skot/ESP-Miner/blob/master/doc/unit_testing.md
The text was updated successfully, but these errors were encountered: