This commit is contained in:
Rob 2022-12-10 14:08:10 +01:00
parent a21f6be431
commit cdc33514fa
4 changed files with 18 additions and 2 deletions

16
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}

View File

@ -6,4 +6,4 @@ import gc
gc.collect()
#import connectwifi
#import webserver
#import webserver

View File

@ -36,7 +36,7 @@ def main() -> None:
if can.reset() != ERROR.ERROR_OK:
print("Can not reset for MCP2515")
return
if can.setBitrate(CAN_SPEED.CAN_250KBPS, CAN_CLOCK.MCP_8MHZ) != ERROR.ERROR_OK:
if can.setBitrate(CAN_SPEED.CAN_5KBPS, CAN_CLOCK.MCP_16MHZ) != ERROR.ERROR_OK:
print("Can not set bitrate for MCP2515")
return
if can.setNormalMode() != ERROR.ERROR_OK:

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB