[riot-notifications] [RIOT-OS/RIOT] Cannot assign a pointer in ISR (#16517)

sada45 notifications at github.com
Tue Jun 1 09:31:53 CEST 2021


Thank for your quick reply!
But I not quite sure what's your mean.
The pointer `remotedevice_list` should be initialized at function `remote_device_init()`
A quick runs at `main()` works fine.
```c
int main(void)
{
	ble_addr_t addr = {0x01, {0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD}};
	remote_device_init();
	remote_device_add(1, "test", 5, &addr);
	printf("name = %s\n", remotedevice_list->next->name);
}
```
![image](https://user-images.githubusercontent.com/49777976/120284062-6f491e80-c2ee-11eb-9cee-f7aba9f9527e.png)



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/16517#issuecomment-851895915
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210601/cde43d8c/attachment.htm>


More information about the notifications mailing list