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

'rnd' was not declared in this scope #31

Closed
0x77dev opened this issue Feb 13, 2020 · 2 comments
Closed

'rnd' was not declared in this scope #31

0x77dev opened this issue Feb 13, 2020 · 2 comments

Comments

@0x77dev
Copy link

0x77dev commented Feb 13, 2020

log_i("Testing random mac #%06X: %s / %s", random(0, OUIDBSize), OuiPsramCache[rnd]->mac, OuiPsramCache[rnd]->assignment );

In file included from /Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/cores/esp32/esp32-hal.h:50:0,
                 from /Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/cores/esp32/Arduino.h:35,
                 from sketch/ESP32-BLECollector.ino.cpp:1:
sketch/DB.h: In member function 'void DBUtils::loadVendorsToPSRam()':
DB.h:639:99: error: 'rnd' was not declared in this scope
         log_i("Testing random vendor mac #%d: %d / %s", random(0, VendorDBSize), VendorPsramCache[rnd]->devid[0], VendorPsramCache[rnd]->vendor );
                                                                                                   ^
/Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/cores/esp32/esp32-hal-log.h:97:72: note: in definition of macro 'log_i'
 #define log_i(format, ...) log_printf(ARDUHAL_LOG_FORMAT(I, format), ##__VA_ARGS__)
                                                                        ^
sketch/DB.h: In member function 'void DBUtils::loadOUIToPSRam()':
DB.h:660:88: error: 'rnd' was not declared in this scope
         log_i("Testing random mac #%06X: %s / %s", random(0, OUIDBSize), OuiPsramCache[rnd]->mac, OuiPsramCache[rnd]->assignment );
                                                                                        ^
/Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/cores/esp32/esp32-hal-log.h:97:72: note: in definition of macro 'log_i'
 #define log_i(format, ...) log_printf(ARDUHAL_LOG_FORMAT(I, format), ##__VA_ARGS__)
                                                                        ^
sketch/BLE.h: In static member function 'static void BLEScanUtils::dumpStats(const char*)':
BLE.h:1100:9: error: 'SelfCacheHit' was not declared in this scope
         SelfCacheHit,
         ^
/Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/cores/esp32/esp32-hal-log.h:97:72: note: in definition of macro 'log_i'
 #define log_i(format, ...) log_printf(ARDUHAL_LOG_FORMAT(I, format), ##__VA_ARGS__)
                                                                        ^
Несколько библиотек найдено для "BLEDevice.h"
 Используется: /Users/mishamarinenko/Documents/Arduino/libraries/BLE
Не используется: /Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/BLE
Несколько библиотек найдено для "SD.h"
 Используется: /Users/mishamarinenko/Library/Arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/SD
Не используется: /Applications/Arduino.app/Contents/Java/libraries/SD
exit status 1
'rnd' was not declared in this scope
@tobozo
Copy link
Owner

tobozo commented Feb 13, 2020

set the log level to "warning" to avoid this error

@tobozo
Copy link
Owner

tobozo commented Feb 15, 2020

let's discuss this on the other thread #30, closing this issue for more clarity

@tobozo tobozo closed this as completed Feb 15, 2020
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

No branches or pull requests

2 participants